Oenology Code Reference

A cross-reference of every WordPress function, hook, and global variable used in the Theme. The following functions, tags, and hooks are used (or referenced) in Oenology:


WordPress Functions

add_action()

add_action() is a WordPress function.

add_action() is used to hook a function into a WordPress action

add_action( \$tag, \$function_to_add, \$priority, \$accepted_args ) accepts four arguments:

Example:

Used in the following template files:

add_custom_background()

add_custom_background() is a WordPress function.

add_custom_background() is used to add Theme support for WordPress custom background functionality

add_custom_background( \$header_callback, \$admin_header_callback, \$admin_image_div_callback ) accepts three arguments:

Example:

Used in the following template files:

add_custom_image_header()

add_custom_image_header() is a WordPress template tag.

add_custom_image_header() is used to add Theme support for WordPress custom background functionality

add_custom_image_header( \$header_callback, \$admin_header_callback ) accepts two arguments:

Example:

Used in the following template files:

add_editor_style()

add_editor_style() is a WordPress template tag.

Codex reference: add_editor_style()

add_editor_style() is used to add Theme support for WordPress custom visual editor style functionality

add_editor_style( \$stylesheet ) accepts one argument:

Example:

Used in the following template files:

add_filter()

add_filter() is a WordPress function.

add_filter() is used to hook a function into a WordPress action

add_filter( \$tag, \$function_to_add, \$priority, \$accepted_args ) accepts four arguments:

Example:

Used in the following template files:

add_image_size()

add_image_size() is a WordPress function.

add_image_size() is used to define a custom thumbnail image size, which will be generated along with the default sizes of "Original", "Large", "Medium", "Small", and "Thumbnail".

add_image_size( \$name, \$width, \$height, \$crop ) accepts four arguments:

Example:

Used in the following template files:

add_theme_support()

add_theme_support() is a WordPress function.

add_theme_support() is used to add Theme support for the specified functionality

add_theme_support( \$feature ) accepts one argument:

Used in the following template files:

apply_filters()

apply_filters() is a WordPress function.

apply_filters() is used to call the functions added to a filter hook, and apply them to a specified value.

apply_filters( \$tag, \$value ) accepts two arguments:

Examples:

Used in the following template files:

dynamic_sidebar()

dynamic_sidebar() is a WordPress function.

dynamic_sidebar() is used to insert widgetized areas ("sidebars") into a Theme.

Dynamic sidebars must be defined and registered. Refer to functions.php for more information.

dynamic_sidebar( \$index ) accepts one argument:

Example:

Used in the following template files:

get_option()

get_option() is a WordPress function.

get_option() is used to return the value of a specified database option. If the option does not exist or has no value, the function returns FALSE.

get_option() returns, but does not print (output/display) the value requested. To print this value, use 'echo get_option()'.

get_option( \$show, \$default ) accepts two arguments:

Examples:

Used in the following template files:

get_queried_object()

get_queried_object() is a property of the WordPress WP_Query class.

get_queried_object() is used to return information about the current category, author, permalink, or page. get_queried_object() returns an object that contains the specified information.

get_queried_object() accepts no arguments.

Example:

Used in the following template files:

get_query_var()

get_query_var() is a WordPress function.

get_query_var() is used to return the specified variable from the \$wp_query object.

get_query_var( \$var ) accepts one argument:

Examples:

Used in the following template files:

get_stylesheet_uri()

get_stylesheet_uri() is a WordPress function.

get_stylesheet_uri() is used to get the URL of the Theme style sheet (style.css).

get_stylesheet_uri() returns, but does not print/display, the value requested.
echo get_stylesheet_uri() prints/displays the value requested.

get_stylesheet_uri() accepts no arguments.

Example:

Used in the following template files:

get_theme_root()

get_theme_root() is a WordPress template tag.

get_theme_root() is used to retrieve the file path to the directory in which Themes are installed (e.g. 'home/username/html/wp-content/themes').
Note that the returned string has no trailing slash.

get_theme_root() accepts no arguments.

Used in the following template files:

get_userdata()

get_userdata() is a WordPress template tag.

get_userdata() is used to return an object containing user data for the specified user.

get_userdata( \$userid ) accepts one argument:

Example:

Used in the following template files:

header_image()

header_image() is a WordPress function.

header_image() is used to display the path to the header image.

header_image() accepts no arguments.

Used in the following template files:

home_url()

home_url() is a WordPress function

home_url() is used to return the home URL (the 'home' option), using the appropriate protocol (http or https), based on value of is_ssl().

home_url() accepts no arguments.

Example:

Used in the following template files:

register_default_headers()

register_default_headers() is a WordPress function.

register_default_headers() is used to register default header images available through the Custom Header admin option page, as part of the Custom Image Header feature.

register_default_headers( \$array ) accepts one argument:

Used in the following template files:

register_nav_menus()

register_nav_menus() is a WordPress function.

register_nav_menus() is used to register Navigation Menu locations, as part of the Navigation Menus feature.

register_nav_menus( \$array ) accept one argument:

Used in the following template files:

register_sidebar()

register_sidebar() is a WordPress function.

register_sidebar() is used to register dynamic (Widgetized) sidebar locaions, as part of the Widgets feature.

register_sidebar( \$array ) accepts one argument, as an array:

Used in the following template files:

register_widget()

register_widget() is a WordPress function.

register_widget() is used to register a custom Theme Widget.

register_widget( \$widget ) accepts one argument:

Used in the following template files:

set_post_thumbnail_size()

set_post_thumbnail_size() is a WordPress function.

set_post_thumbnail_size() is used to define the default size for an image thumbnail, for use with the_post_thumbnail().

set_post_thumbnail_size( \$width, \$height, \$crop ) accepts arguments:

Used in the following template files:

size_format()

size_format() is a WordPress function.

size_format() is used to format filesizes into human-readable.

formats, from bytes into KB, MB, etc.

size_format() takes a value in bytes, and returns the same value in KiB, MiB (where 1 MiB = 1024 B), with units "MB", "KB", etc.

size_format( \$bytes, \$decimals ) accepts two arguments:

Example:

Used in the following template files:

wp_enqueue_script()

wp_enqueue_script() is a WordPress function.

wp_enqueue_script() is used as a safe way to add JavaScript to displayed pages. WordPress maintains a "queue" of javascript files to load when a page is displayed. The wp_enqueue_script() filter enables a Theme or Plugin to add its own javascript files to this queue.

Using wp_enqueue_script() facilitates the addition of javascript files only on pages where they are needed, and will ensure that the same javascript file (e.g. jQuery) is not loaded multiple times.

wp_enqueue_script( \$handle, \$src, \$deps, \$ver, \$in_footer ); accepts five arguments:

Used in the following template files:

wp_upload_dir()

wp_upload_dir() is a WordPress function.

wp_upload_dir() is used to return an array of information regarding the current upload directory.

wp_upload_dir() returns the following \$key => \$value pairs:

wp_upload_dir( \$time ) accepts one argument:

Example:

Used in the following template files:


WordPress Template Tags

Codex Reference: Template Tags

body_class()

body_class() is a WordPress template tag.

body_class() is added inside the HTML <body> tag, and outputs various CSS class declarations, depending on which page is currently being displayed.

For the full list of CSS classes returned by body_class(), see the Codex.

Used in the following template files:

category_description()

category_description() is a WordPress template tag.

category_description() is used to display the description for the current category.

category_description( \$cat ) accepts one argument:

comment_form()

comment_form() is a WordPress template tag.

comment_form() is used to output the comment reply form in the comments section of a Post or Page.

comment_form() accepts two arguments:

comments_link() is a WordPress template tag.

comments_link() is used to display the URL to the current post's comments. This tag returns the URL only, rather than the full HTML anchor-tag link.

comments_link() accepts no arguments.

Example:

comments_link() must be used within the Loop.

Used in the following template files:

comments_number()

comments_number() is a WordPress template tag.

comments_number() is used to display the number of comments (including comments, trackbacks, and pingbacks) on the current post.

comments_number( \$zero, \$one, \$more ) accepts three arguments:

Example:

comments_number() must be used within the Loop.

Used in the following template files:

edit_post_link()

edit_post_link() is a WordPress template tag.

edit_post_link() is used to display a link to edit the current post. This link only displays if the current user is logged in and has the edit_post capability (typically, Admins, Editors, and Authors).

edit_post_link() returns the full HTML anchor tag, rather than just the URL of the edit-post link. To retrieve just the URL, use get_edit_post_link().

edit_post_link( \$link, \$before, \$after, \$id ) accepts four arguments:

Example:

edit_post_link() must be used within the Loop, unless the \$id argument is specified.

Used in the following template files:

get_avatar()

get_avatar() is a WordPress template tag.

get_avatar() is used to display the Post ID for the current post.

get_avatar( \$id_or_email, \$size, \$default, \$alt ) accepts four arguments:

Example:

To get the Avatar without displaying it, omit "echo" in the function call to get_avatar().

Used in the following template files:

get_bloginfo()/bloginfo()

get_bloginfo() and bloginfo() are WordPress template tags.

bloginfo() can be used to print several useful WordPress-related parameters.

get_bloginfo() returns, but does not print/display, the data requested.
bloginfo() prints/displays the data requested.

bloginfo( \$show ) accepts one argument;
get_bloginfo( \$show, \$filter ) accepts two arguments:

get_bloginfo(): Used in the following template files:

bloginfo(): Used in the following template files:

get_category()/get_the_category()/the_category()/wp_get_post_categories()

get_category()/get_the_category()/the_category() are WordPress template tags.

get_category() returns an object that contains the data for the specified category.
get_the_category() returns and object that contains data for categories for the specified post.
the_category() displays a list of links to categories for the specified post.
wp_get_post_categories() returns the list of category IDs for a post.

get_category()/get_the_category()/wp_get_post_categories() return, but do not print/display, the data requested.
the_category() prints/displays the data requested.

get_tcategory() returns an object or array of data for the specified category. The returned object includes the following variables:

get_the_category() returns an object of categories. The returned object includes the following variables for each category:

wp_get_post_categories() returns an array of Category IDs.

get_category( \$category, \$output, \$filter ) accepts three arguments:

get_the_category( \$id ) accepts one argument:

the_category( \$separator, \$parents, \$id ) accepts three arguments:

wp_get_post_categories( \$id, \$args ) accepts two arguments:

Examples:

get_the_category() must be used inside the loop, unless a post ID is passed using the \$id argument.

get_category(): Used in the following template files:

get_the_category(): Used in the following template files:

the_category(): Used in the following template files:

wp_get_post_categories(): Used in the following template files:

get_category_parents()

get_category_parents() is a WordPress function.

get_category_parents() is used to return a list of the parents of a category, including the category, sorted by ID.

get_category_parents( \$category, \$displaylink, \$separator, \$nicename ) accepts four arguments:

Used in the following template files:

get_children()

get_children() is a WordPress function.

get_children() is used to retrieve attachments, revisions of a given Post

get_children() returns an associative array of posts (of variable type set by \$output parameter) with post IDs as array keys, or an empty array if no posts are found.

get_children( \$args[string] ) accepts multiple arguments. See the Codex for full list.

Used in the following template files:

get_comment_link() is a WordPress template tag.

get_comment_link() is used to get the permalink to a given comment

get_comment_link() accepts two arguments:

Example:

get_comment_link() must be used from within the Loop, unless the \$comment parameter is used.

Used in the following template files:

get_comments_number()

get_comments_number() is a WordPress template tag.

get_comments_number() is used to return the number (as a numeric value) of comments (including comments, trackbacks, and pingbacks) on the current post.

get_comments_number() accepts no arguments

get_comments_number() must be used within the Loop.

Used in the following template files:

get_comment_pages_count()

get_comment_pages_count() is a WordPress function.

get_comment_pages_count() is used to return the number of comment pages for a given post. Generally, it is used as part a conditional, to display comment-page navigation links only if more than one comment page exists.

get_comment_pages_count() accepts no arguments.

Examples:

get_comment_pages_count() must be used from within the Loop.

Used in the following template files:

get_comment_type()

get_comment_type() is a WordPress function.

get_comment_type() is used to return (not output or print) the type of a given comment: 'comment', 'pingback', or 'trackback. To output this value, use comment_type().

get_comment_type() accepts no arguments.

Examples:

get_comment_type() must be used from within the Loop.

Used in the following template files:

get_month_link() is a WordPress function.

get_month_link() is used to return the monthly archive URL to a specific year and month

get_month_link() returns, but does not display (print) the URL. Use echo get_month_link() to display the URL.

get_month_link( \$year, \$month ) accepts two arguments:

Used in the following template files:

get_permalink()/the_permalink() are WordPress template tags.

get_permalink()/the_permalink() are used to return/display the permalink URL for the current post. These tags return only the permalink URL, not a fully formed HTML anchor tag.

get_permalink() returns, but does not display, the requested post permalink. To display/print the URL, use the_permalink().

get_permalink( \$id ) accepts one argument:

the_permalink() accepts no arguments.

Example:

get_permalink() must be used within the Loop, unless the \$id is passed.
the_permalink() must be used within the Loop.

get_permalink(): Used in the following template files:

the_permalink(): Used in the following template files:

get_post()/the_post()

get_post()/the_post() are WordPress template tags.

get_post() is used to return an object or array containing the data for the specified post.

get_post() returns, but does not display, the requested data.

the_post() is used to output the content of each post. It is primarily used in conjunction with have_posts() as part of the call to the Loop.

get_post( \$post, \$output ) accepts two arguments

Example (the Loop):

get_post(): Used in the following template files:

the_post(): Used in the following template files:

get_post_format()

get_post_format() is a WordPress template tag.

get_post_format() is used to retrieve the Post Format of the current Post

get_post_format() returns the Post Format type, as a string, if the current Post has a Post Format (other than "standard") selected; otherwise, it returns NULL.

get_post_format( \$postid ) accepts one argument:

Used in the following template files:

get_posts()

get_posts() is a WordPress template tag.

get_posts() is used to create/output multiple Post Loops.

get_posts( \$args ) accepts one argument:

Used in the following template files:

get_search_query()/the_search_query()

get_search_query()/the_search_query() are WordPress template tags.

get_search_query()/the_search_query() are used to return the string used in a search query.

get_search_query() returns, but does not print/display, the search query string.
the_search_query() prints/displays the search query string.

get_search_query()/the_search_query() accept no arguments

Examples:

get_search_query(): Used in the following template files:

the_search_query(): Used in the following template files:

get_tag_feed_link() is a WordPress template tag.

get_tag_feed_link() returns the link for the RSS feed for the specified tag.

get_tag_feed_link( \$tagid, \$feed ) accepts two arguments:

Example:

get_tag_feed_link() must be used outside the Loop.

Used in the following template files:

get_tags()/get_the_tags()/the_tags()

get_tags()/get_the_tags()/the_tags() are WordPress template tags.

get_tags() returns an object that contains tags as specified in the query argument.

get_the_tags()/the_tags() are used to return/display a list of links to categories to which the post belongs.

get_the_tags() returns, but does not print/display, the data requested.
the_tags() prints/displays the data requested.

get_tags()/get_the_tags() return an array of tags. The returned array includes the following variables:

get_tags( \$args ) accepts one argument:

get_the_tags( \$id ) accepts one argument:

the_tags( \$before, \$separator, \$after ) accepts three arguments:

the_tags() must be used within the Loop.

the_tags(): Used in the following template files:

get_the_author()/the_author()

get_the_author()/the_author() are WordPress template tags.

get_the_author()/the_author() are used to return the author of the current post.

get_the_author() returns, but does not print/display, the author name.
the_author() prints/displays the author name.

get_the_author()/the_author() accept no arguments.

get_the_author()/the_author() must be used within the Loop.

Used in the following template files:

get_the_author_meta()/the_author_meta()

get_the_author_meta()/the_author_meta() are WordPress template tags.

get_the_author_meta()/the_author_meta() are used to display metadata for the Author of the current post.

get_the_author_meta() returns, but does not print/display, the author metadata.
the_author_meta() prints/displays the author metadata.

get_the_author_meta( \$field, \$userID )/the_author_meta( \$field, \$userID ) accept two arguments:

Example:

get_the_author_meta()/the_author_meta() must be used within the Loop, unless the \$userID argument is used.

Used in the following template files:

get_the_content()/the_content()

get_the_content()/the_content() are WordPress template tags.

get_the_content()/the_content() are used to display the Post Content for the current post.

get_the_content() returns, but does not print/display, the Post content.
the_content() prints/displays the Post content.

the_content( \$more_link_text, \$strip_teaser ) accepts two arguments:

get_the_content()/the_content() must be used within the Loop.

the_content(): Used in the following template files:

get_the_date()/the_date()

get_the_date()/the_date() are WordPress template tags.

get_the_date()/the_date() are used to display the publish date for the current post.

get_the_date() returns, but does not print/display, the Post content.
the_date() prints/displays the Post content.

get_the_date( \$d )/the_date( \$d ) accept one argument:

Example:

get_the_date()/the_date() must be used within the Loop.

the_date(): Used in the following template files:

get_the_excerpt()/the_excerpt()

get_the_excerpt()/the_excerpt() are WordPress template tags.

get_the_excerpt()/the_excerpt() are used to display the Post Excerpt for the current post.

get_the_excerpt() returns, but does not print/display, the Post excerpt.
the_excerpt() prints/displays the Post excerpt.

get_the_excerpt()/the_excerpt() accept no arguments.

get_the_excerpt()/the_excerpt() must be used within the Loop.

get_the_excerpt(): Used in the following template files:

the_excerpt(): Used in the following template files:

get_the_ID()/the_ID()

get_the_ID/the_ID() are WordPress template tags.

get_the_ID/the_ID() are used to return/display the Post ID for the current post.

get_the_ID returns, but does not print/display, the Post ID.
the_ID() prints/returns the Post ID.

get_the_ID/the_ID() accept no arguments.

get_the_ID/the_ID() must be used within the Loop.

the_ID(): Used in the following template files:

get_the_post_thumbnail()/the_post_thumbnail()

get_the_post_thumbnail()/the_post_thumbnail() are WordPress template tags.

get_the_post_thumbnail()/the_post_thumbnail() are used to return/display the post thumbnail for the current post.

Post Thumbnails support must be defined and configured. Refer to functions.php for more information.

get_the_post_thumbnail( \$id, \$size, \$attr ) accepts three arguments;
the_post_thumbnail( \$size, \$attr ) accepts two arguments:

the_post_thumbnail() must be used within the Loop.

the_post_thumbnail(): Used in the following template files:

get_the_time()/the_time()

get_the_time()/the_time() are WordPress template tags.

get_the_time()/the_time() are used to return/display the Post Time.

get_the_time() returns, but does not print/display, the Post Time.
the_time() prints/displays the Post Time.

get_the_time( \$d )/the_time( \$d ) accept one argument:

Example:

get_the_time()/the_time() must be used within the Loop.

get_the_time(): Used in the following template files:

the_time(): Used in the following template files:

get_the_title()/the_title()

get_the_title()/the_title() are WordPress template tags.

get_the_title()/the_title() are used to display the Post Title of the current post.

get_the_title() returns, but does not print/display, the Post Title.
the_title() prints/displays the Post Title.

get_the_title( \$id ) accepts one argument:

the_title( \$before, \$after, \$echo ) accepts three arguments:

Example:

get_the_title()/the_title() must be used within the Loop.

get_the_title(): Used in the following template files:

the_title(): Used in the following template files:

get_trackback_url()

get_trackback_url() is a WordPress template tag.

get_trackback_url() is used to display the URL to the current post's trackback URL. This tag returns the URL only, rather than a full HTML anchor-tag link.

get_trackback_url() accepts no arguments.

Example:

get_trackback_url() must be used within the Loop.

Used in the following template files:

get_year_link() is a WordPress template tag.

get_year_link() is used to return (not print) the URL for the year-archive for the specified year.

get_year_link( \$year ) accepts one argument:

Used in the following template files:

language_attributes()

language_attributes() is a WordPress template tag.

language_attributes() is added inside the HTML <html> tag, and outputs various HTML language attributes, such as language and text-direction.

Used in the following template files:

next_comments_link()/previous_comments_link() are WordPress template tags.

next_comments_link()/previous_comments_link() are used to display the next (older) and previous (newer) page of comments.

next_comments_link( \$label, \$maxpage )/previous_comments_link( \$label, \$maxpage ) accept two arguments:

Examples:

next_comments_link()/previous_comments_link() must be used from within the Loop.

next_comments_link(): Used in the following template files:

previous_comments_link(): Used in the following template files:

next_post_link()/previous_post_link()

next_post_link()/previous_post_link() are WordPress functions.

next_post_link()/previous_post_link() are used to display the next (older) and previous (newer) post.

next_post_link()/previous_post_link() display a fully-formed HTML link.

next_post_link( \$format, \$link, \$in_same_cat, \$exclude_categories )/previous_post_link( \$format, \$link, \$in_same_cat, \$exclude_categories ) accept four arguments:

Example:

next_post_link()/previous_post_link() must be used from within the Loop.

next_post_link(): Used in the following template files:

previous_post_link(): Used in the following template files:

post_class()

post_class() is a WordPress template tag.

post_class() is added inside the HTML <div> or <span> tag that contains the post, and outputs various CSS class declarations, depending on which post is currently being displayed.

For the full list of CSS classes returned by post_class(), see the Codex.

Used in the following template files:

posts_nav_link() is a WordPress template tag.

posts_nav_link() is used to display Previous/Next links for paginated lists of posts (e.g. index.php, archive.php, category.php, tag.php).

Note: the "Previous" link indicates *newer* posts; the "Next" link indicates *older* posts. Thus, "Previous" and "Next" indicate the reverse-chronological nature of blog posts; i.e. Previous in time (more recent) and Next in time (older).

posts_nav_link( \$sep, \$prelabel, \$nxtlabel ) accepts 3 arguments:

Example:

posts_nav_link() must be used within the Loop.

Used in the following template files:

single_cat_title()

single_cat_title() is a WordPress template tag.

single_cat_title() is used to display the title for the current category when displaying the category page.

single_cat_title( \$prefix, \$display ) accepts one argument:

single_cat_title() must be used outside the Loop.

Used in the following template files:

single_tag_title()

single_tag_title() is a WordPress template tag.

single_tag_title() is used to display the title for the current tag when displaying the tag page.

single_tag_title( \$prefix, \$display ) accepts one argument:

single_tag_title() must be used outside the Loop.

Used in the following template files:

the_shortlink()/wp_get_shortlink() are WordPress template tags.

the_shortlink()/wp_get_shortlink() are used to return/display the Shortlink for the current post.

wp_get_shortlink() returns, but does not display/print the shortlink URL.
the_shortlink() prints/displays a fully formed HTML anchor tag for the shortlink.

the_shortlink( \$text, \$title, \$before, \$after ) accepts four arguments:

wp_get_shortlink( \$id, \$context, \$allow_slugs ) accepts three arguments:

Example:

the_shortlink() must be used within the Loop.
wp_get_shortlink() must be used within the Loop, unless the \$id argument is used.

Used in the following template files:

the_widget()

the_widget() is a WordPress template tag.

the_widget() is used to output a Widget anywhere within a Theme. This tag allows Widgets to be displayed outside of a Widgetized sidebar. The tag can also be used to output "default" Widgets that will display in a defined Widgetized sidebar location if no Widgets are defined (by the user) to appear in the sidebar.

the_widget( \$widget, \$instance, \$args ) accepts 3 arguments:

Example:

the_widget() can be used anywhere within a template.

Used in the following template files:

wp_footer() is a WordPress template tag.

wp_footer() is used to fire the wp_footer action hook.

wp_footer() is intended to be placed immediately before the closing </body> tag.

wp_footer() accepts no arguments.

Used in the following template files:

wp_get_attachment_image()

wp_get_attachment_image() is a WordPress function.

wp_get_attachment_image() is used to return an HTML image tag for an attachment image.

wp_get_attachment_image( \$id, \$size, \$icon ) accepts arguments:

Used in the following template files:

wp_get_attachment_link() is a WordPress function.

wp_get_attachment_link() is used to return an HTML hyperlink to an attachment page or file.

wp_get_attachment_link( \$id, \$size, \$permalink, \$icon ) accepts four arguments:

Used in the following template files:

wp_get_current_user()

wp_get_current_user() is a WordPress function.

wp_get_current_user() is used to retrieve the information contained in the \$current_user global variable.

wp_get_current_user() accepts no arguments.

Example:

Used in the following template files:

wp_head() is a WordPress template tag.

wp_head() is used to fire the wp_footer action hook.

wp_head() is intended to be placed immediately before the closing </head> tag in the HTML document head.

wp_head() accepts no arguments.

Used in the following template files:

wp_link_pages() is a WordPress template tag.

wp_link_pages() is used to output page links for paginated posts.

wp_link_pages( '&arg1=value1&arg2=value2' ) accepts several arguments, in array format.

Example:

wp_link_pages() must be used within the Loop.

Used in the following template files:

wp_list_comments()

wp_list_comments() is a WordPress template tag.

wp_list_comments() is used to display the comments associated with a given post.

wp_list_comments( \$args ) accepts one argument:

Example:

wp_list_comments() must be used from within the Loop.

Used in the following template files:

wp_list_pages()

wp_list_pages() is a WordPress template tag.

wp_list_pages() is used to output a list of pages (as links). This function is extremely powerful, with several available arguments, including depth of hierarchy to display, pages (or hierarchies) to include/exclude, display order (ascending/descending/menu order).

wp_list_pages( \$args ) accepts one argument:

Used in the following template files:

wp_loginout()

wp_loginout() is a WordPress function.

wp_loginout() displays a login link if user is logged out, or a logout link if user is logged in.

wp_loginout( \$redirect, \$echo ) accepts two arguments:

Used in the following template files:

wp_nav_menu() is a WordPress template tag.

wp_nav_menu( \$menu ) is used to output a nav menu named \$menu. This menu must be configured in the Menus administration panel.

wp_nav_menu() is used to output the default nav menu. This menu must be configured in the Menus administration panel.

wp_nav_menu( \$args ) accepts one argument:

Used in the following template files:

wp_register()

wp_register() is a WordPress function.

wp_register() displays a registration link if user is logged out and user registration is permitted; otherwise, displays a link to site admin (Dashboard) if user is logged in.

wp_register( \$before, \$after, \$echo ) accepts 3 arguments:

Example:

Used in the following template files:

wp_title

wp_title() is a WordPress template tag.

wp_title() is a WordPress template tag used to display the title of a page:

wp_title( \$sep, \$echo, \$seplocation ) accepts 3 arguments:

Used in the following template files:


WordPress Include Tags

Codex Reference: Include Tags

comments_template()

comments_template() is a WordPress include tag.

comments_template() is used to include the comments Theme template file (comments.php) within another. This function ensures that all of the necessary/helper core functions and scripts are loaded appropriately for rendering comments and the comment reply form.

comments_template( \$file, \$separate_comments ) accepts two arguments.

Used in the following template files:

get_footer() is a WordPress include tag.

get_footer() is used to include the footer Theme template file (footer.php) within another. This function facilitates re-use of Theme template files, and also facilitates child Theme template files to take precedence over parent Theme template files.

get_footer( \$foo ) will attempt to include footer-foo.php. If it doesn't exist, the default footer.php will be used.

get_footer( \$name ) accepts one argument:

Used in the following template files:

get_header()

get_header() is a WordPress include tag.

get_header() is used to include the header Theme template file (header.php) within another. This function facilitates re-use of Theme template files, and also facilitates child Theme template files to take precedence over parent Theme template files.

get_header( \$foo ) will attempt to include header-foo.php. If it doesn't exist, the default header.php will be used.

get_header( \$name ) accepts one argument:

Used in the following template files:

get_search_form()

get_search_form() is a WordPress include tag.

get_search_form() is used to display the search form. If the Theme includes a searchform.php template file, it will be used. Otherwise, the built-in search form will be used.

get_search_form() accepts no arguments.

Used in the following template files:

get_sidebar()

get_sidebar() is a WordPress include tag.

get_sidebar() is used to include a sidebar template file within another. This function facilitates re-use of Theme template files, and also facilitates child Theme template files to take precedence over parent Theme template files.

get_sidebar( \$name ) will attempt to include sidebar-name.php. The function will attempt to include files in the following order, until it finds one that exists:

get_sidebar() with no argument passed will attempt to include sidebar.php. The function will attempt to include files in the following order, until it finds one that exists:

get_sidebar( \$name ) accepts one argument:

Used in the following template files:

get_template_part()

get_template_part() is a WordPress template tag.

get_template_part() is used to include a Theme template file within another. This function facilitates re-use of Theme template files, and also facilitates child Theme template files to take precedence over parent Theme template files.

get_template_part( \$file ) will attempt to include file.php. The function will attempt to include files in the following order, until it finds one that exists:

get_template_part( \$file , \$foo ) will attempt to include file-foo.php. The function will attempt to include files in the following order, until it finds one that exists:

get_template_part( \$slug, \$name ) accepts two arguments:

Used in the following template files:


WordPress Conditional Tags

Codex Reference: Conditional Tags

comments_open()

comments_open() is a WordPress template conditional tag.

comments_open() is a boolean (returns TRUE or FALSE) conditional tag that returns true if comments are open for the current post.

comments_open( \$postid ) accepts one argument:

comments_open() must be used from within the Loop, unless the \$postid parameter is used.

Used in the following template files:

has_nav_menu()

has_nav_menu() is a WordPress template conditional tag.

has_nav_menu( \$menu ) is a boolean (returns TRUE or FALSE) conditional tag that returns true if a nav_menu named \$menu has been configured by the user; otherwise it returns false.

has_nav_menu() is useful for defining a fallback option for a navigation menu, in case the user does not define a particular nav menu in the Menus administration panel.

Used in the following template files:

have_comments()

have_comments() is a WordPress conditional tag.

have_comments() is a conditional that returns TRUE if the current post has comments associated with it; otherwise, it returns FALSE. The most typical use of this conditional is within the comments template, as part of the comments "Loop".

have_comments() accepts no arguments.

Example:

have_comments() must be used from within the Loop.

Used in the following template files:

have_posts()

have_posts() is a WordPress template conditional tag.

have_posts() is a boolean (returns TRUE or FALSE) conditional tag that returns true if the current query has posts available. It is primarily used in conjunction with the_post() as part of the call to the Loop.

Example (the Loop):

Used in the following template files:

is_404()

is_404() is a WordPress template conditional tag.

is_404() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a 404 error page is currently displayed.

A 404 error page corresponds to the 404.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an page will have class="error404".

is_404() accepts no arguments.

Used in the following template files:

is_archive()

is_archive() is a WordPress template conditional tag.

is_archive() is a boolean (returns TRUE or FALSE) conditional tag that returns true if an archive page is currently displayed.

An archive page corresponds to the archive.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an archive page will have class="archive".

is_archive() accepts no arguments.

Used in the following template files:

is_attachment()

is_attachment() is a WordPress template conditional tag.

is_attachment() is a boolean (returns TRUE or FALSE) conditional tag that returns true if an attachment post ("attachment" post-type) is currently displayed.

An attachment post corresponds to the attachment.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an attachment post will have class="attachment".

is_attachment() accepts no arguments.

Used in the following template files:

is_author()

is_author() is a WordPress template conditional tag.

is_author() is a boolean (returns TRUE or FALSE) conditional tag that returns true if an author archive page is currently displayed.

An author archive page corresponds to the author.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an author page will have class="author".

is_author() accepts no arguments.

Used in the following template files:

is_category()

is_category() is a WordPress template conditional tag.

is_category() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a category page is currently displayed.

A category page corresponds to the category.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of a category page will have class="category".

is_category( \$category ) accepts one optional argument:

Used in the following template files:

is_day()

is_day() is a WordPress template conditional tag.

is_day() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a date (day) archive page is currently displayed.

A date (day) archive page corresponds to the archive.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of a date (day) page will have class="date".

is_day() accepts no arguments.

Used in the following template files:

is_feed()

is_feed() is a WordPress template conditional tag.

is_feed() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a feed is currently displayed.

A feed does not correspond to any template files in the Theme hierarchy.

is_feed() accepts no arguments.

Used in the following template files:

is_home()

is_home() is a WordPress template conditional tag.

is_home() is a boolean (returns TRUE or FALSE) conditional tag that returns true if the home page (i.e. the blog posts index) is currently displayed.

The home page, or blog post index page, corresponds to the index.php and/or home.php Theme template files in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an page will have class="blog".

is_home() accepts no arguments.

Used in the following template files:

is_month()

is_month() is a WordPress template conditional tag.

is_month() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a date (month) archive page is currently displayed.

A date (month) archive page corresponds to the archive.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of a date (month) page will have class="date".

is_month() accepts no arguments.

Used in the following template files:

is_page()

is_page() is a WordPress template conditional tag.

is_page() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a page ("Page" post-type) or an attachment ("Attachment" post-type) is currently displayed.

A Page corresponds to the page.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an page will have class="page".

is_page( \$page ) accepts one optional argument:

Used in the following template files:

is_search() is a WordPress template conditional tag.

is_search() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a search results page is currently displayed.

A search results page corresponds to the search.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an page will have class="search".

is_search() accepts no arguments.

Used in the following template files:

is_single()

is_single() is a WordPress template conditional tag.

is_single() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a single post ("post" post-type, i.e. a single blog post) is currently displayed.

A single post corresponds to the single.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of a single post will have class="single".

is_single() accepts no arguments.

Used in the following template files:

is_singular()

is_singular() is a WordPress template conditional tag.

is_singular() is a boolean (returns TRUE or FALSE) conditional tag that returns true if any of the following are true:

is_singular() accepts no arguments.

Used in the following template files:

is_tag()

is_tag() is a WordPress template conditional tag.

is_tag() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a tag page is currently displayed.

A tag page corresponds to the tag.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of an page will have class="tag".

is_tag( \$tag ) accepts one optional argument:

Used in the following template files:

is_user_logged_in()

is_user_logged_in() is a WordPress conditional tag.

is_user_logged_in() is a boolean (returns TRUE or FALSE) conditional tag that returns true if the current user is logged in; otherwise it returns false.

is_user_logged_in() accepts no arguments.

Used in the following template files:

is_year()

is_year() is a WordPress template conditional tag.

is_year() is a boolean (returns TRUE or FALSE) conditional tag that returns true if a date (year) archive page is currently displayed.

A date (year) archive page corresponds to the archive.php Theme template file in the Theme hierarchy, and if the body_class() hook is used, the <body> tag of a date (year) page will have class="date".

is_year() accepts no arguments.

Used in the following template files:

post_password_required()

post_password_required() is a WordPress conditional tag.

post_password_required() is a conditional that returns TRUE if the current post is password-protected; otherwise, it returns FALSE. The most typical use of this conditional is within the comments template, as part of the comments "Loop".

post_password_required() accepts no arguments.

Example:

post_password_required() must be used from within the Loop.

Used in the following template files:

wp_attachment_is_image()

wp_attachment_is_image() is a WordPress template conditional tag

wp_attachment_is_image() is a boolean (returns TRUE or FALSE) conditional tag that returns true if the current post's attachment is an image.

Used in the following template files:


WordPress Hooks

Codex References:

after_setup_theme

after_setup_theme is a WordPress action hook.

after_setup_theme is used by Themes/Plugins, usually to define Theme setup parameters and to add Theme support for various features.

Used in the following template files:

get_comments_number

get_comments_number is a WordPress filter hook.

get_comments_number is used to modify the output of the comments_number() function.

Used in the following template files:

widgets_init

widgets_init is a WordPress action hook.

widgets_init is used by Themes/Plugins, usually to define and register custom Widgets and to register dynamic sidebars.

Used in the following template files:

wp_enqueue_scripts

wp_enqueue_scripts is a WordPress action hook.

wp_enqueue_scripts is used by Themes/Plugins, to output enqueued scripts on the front end of the site.

Used in the following template files:

wp_footer is a WordPress action hook.

wp_footer is used by Themes/Plugins, usually to insert scripts (or, although incorrect: content) into the WordPress Theme footer.

Used in the following template files:

wp_head

wp_head is a WordPress action hook.

wp_head is used by themes/plugins, usually to insert scripts into the HTML document head.

Used in the following template files:

wp_list_categories

wp_list_categories is a WordPress filter hook.

wp_list_categories is used to modify the output of the wp_list_categories() function.

Used in the following template files:

wp_title

wp_title is a WordPress filter hook.

wp_title is used to modify the output of the wp_title() function.

Used in the following template files:


WordPress Global Variables

\$page

\$page is a WordPress global variable.

\$page (string) stores the current page number of a multi-page single blog Post or static Page.

\$page applies only to single Posts or Pages, not to archive pages.

Used in the following template files:

\$pages

\$page is a WordPress global variable.

\$pages (array) is an array that stores the number of pages into which a multi-page single blog Post or static Page has been split.

\$pages applies only to single blog Posts or static Pages, not to archive index pages.

Used in the following template files:

\$paged

\$page is a WordPress global variable.

\$paged (string) stores the current page number of an archive index page.

\$paged applies only to archive index pages, not to single blog Posts or static Pages.

Used in the following template files:

\$post

\$post is a WordPress global variable.

\$post (object) is an object that stores data for the currently queried Post.

\$post is used to return Post data, such as:

Used in the following template files:

\$wpdb

\$wpdb is a WordPress global variable.

\$wpdb (object) is an instance of the wpdb Class.

\$wpdb is used to return custom query data.

Used in the following template files:


WordPress Constants

HEADER_IMAGE_HEIGHT

HEADER_IMAGE_HEIGHT is a WordPress constant.

HEADER_IMAGE_HEIGHT is defined in functions/theme-setup.php.

HEADER_IMAGE_HEIGHT defines the height, in pixels, of the custom header image.

Example:

HEADER_IMAGE_WIDTH

HEADER_IMAGE_WIDTH is a WordPress constant.

HEADER_IMAGE_WIDTH is defined in functions/theme-setup.php.

HEADER_IMAGE_WIDTH defines the width, in pixels, of the custom header image.

Example:

HEADER_TEXTCOLOR

HEADER_TEXTCOLOR is a WordPress constant.

HEADER_TEXTCOLOR is defined in functions/theme-setup.php.

HEADER_TEXTCOLOR defines the color, in hexadecimal units, of the custom header image.
Note: omit the octothorpe (#) prefix when defining this constant. For example, for black, use '000000' rather than '#000000'.

Example:

NO_HEADER_TEXT

NO_HEADER_TEXT is a WordPress constant.

NO_HEADER_TEXT is defined in functions/theme-setup.php.

NO_HEADER_TEXT defines the ability for the user to change the header text color.

Example:


PHP Functions

\$_SERVER[]

\$_SERVER[] is a PHP function that returns various server variables.

Example:

Used in the following template files:

array_map()

array_map() is a PHP function.

array_map() is used to apply a callback to the elements of the given array(s)

array_map() returns an array containing all the elements of arr1 after applying the callback function to each one. The number of parameters that the callback function accepts should match the number of arrays passed to the array_map()

array_map( \$callback, \$array ) accepts two arguments:

Used in the following template files:

array_reverse()

array_reverse() is a PHP function.

array_reverse() is used to reverse the order of elements in an array

array_reverse() will take an array containing elements array[0] = A, array[1] = B, array[2] = C, and reverse the array, such that array[0] = C, array[1] = B, array[2] = A.

array_reverse( \$array, \$preserve_keys ) accepts two arguments:

Example:

Used in the following template files:

array_values()

array_values() is a PHP function.

array_values() is used to return an array of indexed values

array_values() will take an array containing elements "size" => "XL", "color" => "black", "sleeve" => "long", and return an array containing elements array[0] = "XL", array[1] = "black", array[3] = "long"

array_values( \$array ) accepts one argument:

Used in the following template files:

basename()

basename() is a PHP function.

basename() is used to return the filename component of a "\path\to\filename.ext" string

basename( \$path, \$ext ) accepts two arguments:

Used in the following template files:

count()

count() is a PHP function.

PHP reference: count()

count() is used to count the number of elements in an array.

count() will take an array containing elements array[0] = "red", array[1] = "green", array[2] = "blue", and return the value "3".

count( \$array, \$mode ) accepts two arguments:

Example:

Used in the following template files:

create_function()

create_function() is a WordPress function.

create_function() is used to create an anonymous function from the parameters passed, and return a unique name for it.

create_function( \$args, \$code ) accepts two arguments:

Used in the following template files:

date()

date() is a PHP function that returns the current date.

date() accepts one argument: a string indicating the date format.

Used in the following template files:

define()

define() is a PHP function.

define() is used to define a named constant.

define( \$name, \$value, \$case_insensitive ) accepts arguments:

Example:

Used in the following template files:

max()

max() is a PHP function.

max()

is used to determine the highest numerical value of a given group of inputs.

max() returns the highest numerical value of the given inputs. String values can be passed to the function, but are evaluated as a numerical value of zero.

max( \$arg1, \$arg2, etc ) accepts multiple arguments:

max( \$array ) accepts one argument:

Example:

Used in the following template files:

number_format()

number_format() is a PHP function.

number_format() is used to format a number with grouped thousands.

number_format( \$number, \$decimals, \$dec_point, \$thousands_sep ) accepts one, two, our four arguments:

Used in the following template files:

preg_replace()

preg_replace() is a PHP function.

preg_replace() is used to perform a regular-expression search-and-replace.

preg_replace() returns an array if the subject parameter is an array, or a string otherwise. If matches are found, the new subject will be returned, otherwise subject will be returned unchanged or NULL if an error occurred.

preg_replace( \$pattern, \$replacement, \$subject ) accepts arguments:

Used in the following template files:

require_once()

require_once() is a PHP function.

require_once( \$file ) will include the file specified by the \$file argument.

require_once() will return a fatal error if the specified file cannot be included. Also, if theme specified file has already been included, require_once() will not attempt to include it again.

require_once( \$file ) accepts one argument:

Example:

Used in the following template files:

sprintf()

sprintf() is a PHP function.

sprintf() is used to return a string formatted according to the defined formatting string format. See the PHP reference for more information.

Used in the following template files:

str_replace()

str_replace() is a PHP function.

str_replace() is used to replace all occurrences of the search string with the replacement string.

str_replace() returns a string or array (depending on what arguments are passed) that contains the replaced strings.

str_replace( \$search, \$replace, \$subject, \$count ) accepts arguments:

Used in the following template files:

trim()

trim() is a PHP function.

trim() is used to strip whitespace or characters from the beginning and end of a string.

trim( \$string ) accepts one argument:

Used in the following template files:

urldecode()

urldecode() is a PHP function.

urldecode() is used to URL-encode a string.

urldecode() returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type.

urldecode( \$string ) accepts one argument:

Used in the following template files:


PHP Conditionals

file_exists()

file_exists() is a PHP conditional.

file_exists() is a boolean (returns TRUE or FALSE) conditional function that returns true if the specified file exists.

file_exists( \$filepath ) accepts one argument:

Example:

Used in the following template files:

filesize()

filesize() is a PHP conditional.

filesize() is used to return the size, in bytes, of the specified file

filesize( \$file ) accepts one argument:

Used in the following template files:

function_exists()

function_exists() is a PHP conditional.

function_exists( 'foo' ) returns TRUE if a function named foo() is found; otherwise, it returns FALSE.

Used in the following template files:

is_array()

is_array() is a PHP conditional.

is_array() is a boolean (returns TRUE or FALSE) conditional function that returns true if a variable is an array.

is_array() accepts one argument: the variable to be evaluated

Used in the following template files:

isset()

isset() is a PHP conditional.

isset() is used to determine if a specified variable is set, and is not NULL.

isset() returns TRUE if the specified veriable is set, and is not NULL. Otherwise, it returns false. Note: a zero-value ("0") is *not* equivalent to a NULL value.

isset( \$arg ) accepts arguments:

isset() can take multiple variables. In this case, variables ae evaluated as defined from left to right, and the function returns true only if ALL variables return true. Upon the first occurrence of a NULL-value variable, the function stops evaluating, and returns false.

Example:

Used in the following template files:


Oenology Custom Functions

oenology_404_handler()

oenology_404_handler() is a custom Theme function.

oenology_404_handler() is used to generate suggested site content when a user is sent to the 404 page due to a server 404 "file not found" error.

oenology_404_handler() accepts no arguments.

Used in the following template files:

oenology_admin_header_style()

oenology_admin_header_style() is a custom Theme function.

oenology_admin_header_style() is used to define the CSS to apply to the header image displayed on the Custom Header admin option page, as part of the Custom Image Header feature.

oenology_breadcrumb()

oenology_breadcrumb() is a custom Theme function.

oenology_breadcrumb() is used to output breadcrumb links.

oenology_breadcrumb() outputs a home link, followed by appropriate breadcrumb links, including categories (hierarchical), tags, search query, etc.

oenology_breadcrumb() accepts no arguments.

Used in the following template files:

oenology_comment_count()

oenology_comment_count() is a custom Theme function.

oenology_comment_count() is used to return only the number of comment-type comments (excluding trackbacks/pingbacks)

oenology_comment_count() hooks into the get_comments_number() filter hook.

oenology_copyright() is a custom Theme function.

oenology_copyright() is used to output the copyright date range, in the format 'XXXX - YYYY', where 'XXXX' is the year the oldest post was published, and'YYYY' is the current year.

oenology_copyright() accepts no arguments.

Used in the following template files:

oenology_filter_wp_title()

oenology_filter_wp_title() is a custom Theme function.

oenology_filter_wp_title() is used to display more accurate information in wp_title(), according to current location (search query, single post, etc.)

oenology_filter_wp_title() hooks into the wp_title filter hook.

oenology_gallery_image_meta() is a custom Theme function.

oenology_gallery_image_meta() is used to output various metadata related to gallery images.

oenology_gallery_image_meta() outputs an array containing the following values:

oenology_gallery_image_meta() accepts no arguments.

Used in the following template files:

oenology_gallery_links() is a custom Theme function.

oenology_gallery_links() is used to output "previous" and "next" links with both text and thumbnail images, for use with gallery images.

oenology_gallery_links() outputs an array containing the following values:

oenology_gallery_links() accepts no arguments.

Used in the following template files:

oenology_header_style()

oenology_header_style() is a custom Theme function.

oenology_header_style() is used to define the CSS to apply to the header image, as part of the Custom Image Header feature.

oenology_load_widgets()

oenology_load_widgets() is a custom Theme function.

oenology_load_widgets() is used to register the custom Theme Widgets.

oenology_load_widgets() hooks into the widgets_init action hook.

oenology_setup()

oenology_setup() is a custom Theme function.

oenology_setup() is used to define and setup all of the custom Theme features, including Theme support for optional WordPress features. This function is designed to be over-ridden by a Child Theme, if necessary.

oenology_setup() hooks into the after_setup_theme action hook.

oenology_setup_widgets()

oenology_setup_widgets() is a custom Theme function.

oenology_setup_widgets() is used to define all of the custom Theme Widgets. This function is designed to be over-ridden by a Child Theme, if necessary.

oenology_setup_widgets() hooks into the after_theme_setup action hook.

oenology_show_current_cat_on_single()

oenology_show_current_cat_on_single() is a custom Theme function.

oenology_show_current_cat_on_single() is used to add a "current-cat" CSS class, analogous to the "current-page" CSS class, for use in styling the output of wp_list_categories().

oenology_show_current_cat_on_single() hooks into the wp_list_categories filter hook.

oenology_widget_archives()

oenology_widget_archives() is a custom Theme Widget.

oenology_widget_archives() outputs the default "Archives" Widget, but adds a "show/hide" toggle to the Widget output.

oenology_widget_categories()

oenology_widget_categories() is a custom Theme Widget.

oenology_widget_categories() outputs the default "Categories" Widget, but adds a "show/hide" toggle to the Widget output.

oenology_widget_linkrollbycat()

oenology_widget_linkrollbycat() is a custom Theme Widget.

oenology_widget_linkrollbycat() outputs the default "Linkroll" Widget, but adds a "show/hide" toggle to the Widget output.

oenology_widget_recentposts()

oenology_widget_recentposts() is a custom Theme Widget.

oenology_widget_recentposts() outputs the default "Recent Posts" Widget, but adds a "show/hide" toggle to the Widget output.

oenology_widget_tags()

oenology_widget_tags() is a custom Theme Widget.

oenology_widget_tags() outputs the default "Tags" Widget, but adds a "show/hide" toggle to the Widget output.


Other Custom Functions

wp_paginate()

wp_paginate() is a custom function for the WP-Paginate plugin

wp_paginate() accepts one argument, that can be used to override default settings. Refer to the plugin reference for more information.

wp_paginate() is used to output page numbers, in place of Previous/Next Post links.

wp_paginate() must be used within the Loop.

Used in the following template files: