Wordpress Flashcards

1
Q

What is a theme?

A

WordPress themes change the design of a website. Themes take content stored in Wordpress and load/display this content on the website. This makes themes capable of being used on multiple websites without showing the same content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do WordPress themes work?

A

WordPress themes are collections of files that work together to build a webpage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What files are required for WordPress themes?

A

index.php, style.css.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What other files can a WordPress theme include?

A

Template files (see WordPress docs).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Theme vs Plugin?

A

Themes control presentation of content whereas a plugin controls behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain post types.

A

Post types are used to categorize what type of content is being displayed. All post types are stored in the wp_posts database. Common post types are post, page, attachment. Custom post types can also be created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does wordpress decide what template files to use for an individual screen?

A

Wordpress uses that query string (url parameters) to determine what template file to use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are template tags?

A

Template tags are used to retrieve content from wordpress database. They can also be used to call another theme file. get_header() and get_title() are some examples of template tags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain The loop

A

the loop is a mechanism for outputting posts. Usually consists of a while loop that calls have_posts() function in its conditional.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Have_posts()

A

a function that checks whether there are any posts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the functions.php file?

A

functions.php is a file containing unique features (or special functionality) for you wordpress theme.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are wp_enqueue_script() and wp_enqueue_style()

A

These are enqueueing scripts to load in css and javascript files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain the WordPress REST API

A

The WordPress Api is an interface that allows other applications to interact with your website by sending/ receiving JSON data objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly