Wordpress Flashcards

1
Q

How do you install Wordpress?

A

It consists of copying files into a directory, creating a database and navigating through an installation wizard.

http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install

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

Wordpress started off as a _______ platform that enabled users to _____ and ____ posts.

A

Wordpress started off as a blogging platform that enabled users to create and edit posts.

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

It has since evolved into a ________ _______ _______ that enables users to modify _____ and ______.

A

It has since evolved into a Content Management System that enables users to modify pages and content.

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

WordPress’s ______ architecture allows for heavy customization to the _______ and _______ of the site. The _______ system allows third party developers to extend the ______ functionality of WordPress to create almost anything that is required.

A

WordPress’s modular architecture allows for heavy customization to the design and functionality of the site. The plugin system allows third party developers to extend the core functionality of WordPress to create almost anything that is required.

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

WordPress’s admin panel contains _____ required to modify WordPress _____, ______ and __________.

A

WordPress’s admin panel contains tools required to modify WordPress data, design and functionality.

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

The WP admin area allows us to manage _____ and ______, ______, _______, ______ and _____.

_________ and ________ of plugins are also managed in the admin. While we can modify files in the admin, we can also modify the _____ files themselves. Therefore, when working across multiple _________, it would be wise to maintain consistency: either do one of the other.

A

The WP admin area allows us to manage posts and pages, files, content, menus and themes.

Installation and configuration of plugins are also managed in the admin. While we can modify files in the admin, we can also modify the raw files themselves. Therefore, when working across multiple environments, it would be wise to maintain consistency: either do one of the other.

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

WordPress is a _______ tool that has the author in mind. It comes with ______ options (private/public), ______ options (draft, pending review and published), and _______. _________ on posts and pages can be _______ as required.

A

WordPress is a publishing tool that has the author in mind. It comes with visibility options (private/public), publish options (draft, pending review and published), and previews. Commenting on posts and pages can be disabled as required.

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

Posts are regular ________ entries, listed in _________ order. Posts may have different ________ (such as image, links, quotes etc). Posts can be ________ and ________.

A

Posts are regular content entries, listed in chronological order. Posts may have different formats (such as image, links, quotes etc). Posts can be categorized and tagged.

There are different post types. Custom post types can be created. http://codex.wordpress.org/Post_Types

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

Pages are typically ______ of content that can be treated as a whole.

A

Pages are typically blobs of content that can be treated as a whole.

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

You can use ______ or ______ snippets to extend the ________ of both content types.

A

You can use plugins or code snippets to extend the functionality of both content types.

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

List the key differences (by default) of content types (5):

A
  • Posts are timely vs. Pages are timeless.
  • Posts are social vs. Pages are NOT.
  • Posts can be categorized vs. Pages are hierarchical. (Categories can be hierarchical)
  • Posts are included in RSS feed vs. Pages are not.
  • Pages have custom template feature vs. Posts do not.

http://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/

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

Both posts and pages have ______ fields that allow developers to add _____ ____ and then use that ______ inside of posts and pages.

A

Both posts and pages have custom fields that allow developers to add meta data and then use that data inside of posts and pages.

http://codex.wordpress.org/Custom_Fields

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

Wordpress is built for ________ and _______. Most of your work will take place inside of the “________” folder when creating _______ Wordpress sites. The best way to get up and running with _____ is to review the code in the existing ______ files.

A

Wordpress is built for customization and modification. Most of your work will take place inside of the “themes” folder when creating custom Wordpress sites. The best way to get up and running with themes is to review the code in the existing theme files.

http://codex.wordpress.org/WordPress_Files

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

Regarding files, the “functions.php” file would contain _____ _________, including ____, defined by the developer.

A

Regarding files, the “functions.php” file would contain custom functions, including hooks, defined by the developer.

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

Wordpress is based on ____. It is ____ ____ so developers can use their own HTML and PHP inside of Wordpress files for customization or even rewrite parts of Wordpress if necessary.

A

Wordpress is based on PHP. It is open source so developers can use their own HTML and PHP inside of Wordpress files for customization or even rewrite parts of Wordpress if necessary.

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

While reviewing the Wordpress source files, developers will find syntax that looks like this:

A

//process posts

17
Q

Wordpress uses a different type of syntax for ____ statements and ____. They are functionally the same. Just a different syntax. This syntax is not specific to Wordpress, it is pure PHP.

A

Wordpress uses a different type of syntax for if statements and loops. They are functionally the same. Just a different syntax. This syntax is not specific to Wordpress, it is pure PHP.

http://ca1.php.net/alternative_syntax

18
Q

The “loop” is a piece of PHP code that Wordpress uses to _____ and _____ post data.

A

The “loop” is a piece of PHP code that Wordpress uses to retrieve and display post data.

http: //codex.wordpress.org/The_Loop
http: //codex.wordpress.org/The_Loop_in_Action

19
Q

A child theme is a theme that _____ the _____ and _____ of another theme, called the parent theme.

Child themes are the recommended way of ______ an existing theme. If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your _______ are ______.

A

A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme.

Child themes are the recommended way of modifying an existing theme. If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your modifications are preserved.

20
Q

List the steps to create a Child Theme:

  1. Create a ____ in ___ directory.
  2. Create a “____.css” file within _____
  3. Create a “______.php” within ______

https://developer.wordpress.org/themes/advanced-topics/child-themes/

A

1.Create a folder in the themes directory to store your child theme files
2. Create a “style.css” file within your child theme folder then add the correct code copied from the Wordpress documentation and contains more than we need. The important attributes are: “Theme Name” (your child theme name) and “Template” (the parent theme name).
3. Create a “functions.php” file within your child theme folder and add the correct code.
Some themes that you download may require additional functions so please review that theme’s documentation in creating child themes for it.
You may also include additional functions in this file if needed.
Other theme files, such as the header, sidebar or footer may be overwritten by simply including your own version of those files in your child theme.

21
Q

Code to insert into style.css (info needed)

A

/*
Theme Name: Twenty Fifteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/

22
Q

Code to insert into function.php (info needed)

A
get('Version')
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
23
Q

Wordpress allows developers to add custom functions to “______” into existing functionality in the Wordpress lifecycle.

A

Wordpress allows developers to add custom functions to “hook” into existing functionality in the Wordpress lifecycle.

http: //codex.wordpress.org/Plugin_API/Action_Reference
http: //codex.wordpress.org/Plugin_API/Filter_Reference

24
Q

Actions are _____ in the WordPress page lifecycle when certain things have occurred – certain _______ are _____, certain ______ are ______, and, depending on how early the action has occurred, some things have yet to _____. Use actions when you want to _______ something to the existing page such as stylesheets, JavaScript dependencies, or send an email when an event has happened.

A

Actions are events in the WordPress page lifecycle when certain things have occurred – certain resources are loaded, certain facilities are available, and, depending on how early the action has occurred, some things have yet to load. Use actions when you want to add something to the existing page such as stylesheets, JavaScript dependencies, or send an email when an event has happened.

25
Q

Code to add a Favicon to a page:

A
// Add a Favicon to the Site   
add_action( 'wp_head', 'mytheme_add_favicon' );   
function mytheme_add_favicon() {
    echo '';
}
26
Q

Filters are ______ that WordPress passes _____ through during certain points of the page ______.

They are primarily responsible for ______, _________, and _______ data before _______ it to the browser or ______ data from the browser to the database.

Use _____ when you want to ______ data coming out of the database prior to going to the browser, or coming from the browser prior to going into the database.

A

Filters are functions that WordPress passes data through during certain points of the page lifecycle.

They are primarily responsible for intercepting, managing, and returning data before rendering it to the browser or saving data from the browser to the database.

Use filters when you want to manipulate data coming out of the database prior to going to the browser, or coming from the browser prior to going into the database.

27
Q

Wordpress comes with its own set of ________ (WordPress ___) that developers can use to _____/_____ application data.

A

For a full list of WordPress functions, see:
http://codex.wordpress.org/Function_Reference

http://wp.tutsplus.com/tutorials/the-beginners-guide-to-wordpress-actions-and-filters/

28
Q

Code to alter global post data:

A
function suppress_if_blurb($title, $id) {
    if (in_category('blurb', $id)) {
        return '';
    }
    return $title;
}
add_filter('the_title', 'suppress_if_blurb', 10, 2);
29
Q

Template tags allow developers to ____ into WordPress _____ and ______ via ________ calls. For example

A

Template tags allow developers to hook into WordPress content and data via function calls.

30
Q

Code a template WP tag:

A

// the_ID() displays the ID number for a blog entry or post.

//The wp_title() tag accepts two parameters: the first is the sep or separator parameter, and the second the echo or display parameter

31
Q

Some template tags allow you to execute code based on the type of page (or post), its category, tag and so on. these are known as _________ tags.

A

Some template tags allow you to execute code based on the type of page (or post), its category, tag and so on. these are known as conditional tags.

32
Q

In order to better organize files, Wordpress makes use of ______ statements. However, these are wrapped in a Wordpress function call for your convenience. For example:

A
33
Q

The get_header() tag includes the file header.php or header-{name}.php from your current theme’s directory. If that file is not found, it will instead include:

A

wp-includes/theme-compat/header.php.

34
Q

Developers can create custom _______ for parts of their templates and use the following code to include it:

A

Developers can create custom includes for parts of their templates and use the following code to include it:

35
Q

Custom post types allow developers to _______ posts in their own way using a variety of _____-__ data types.

A

Custom post types allow developers to structure posts in their own way using a variety of built-in data types.