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:
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:
\$tag:
WordPress action into which to hook the function.null
\$function_to_add:
function to hook into the WordPress action.null
\$priority:
relative priority (order of execution, lower numbers execute sooner) of function.10
\$accepted_args:
number of arguments accepted by function being hooked.1
Example:
add_action( 'after_setup_theme', 'oenology_setup', 10 );
Used in the following template files:
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:
\$header_callback
: Callback to add to "wp_head".none
\$admin_header_callack
: Callback to add to Custom Background admin screen.none
\$admin_image_div_callback
: Output a custom background image div on Custom Background admin screen.none
Example:
add_custom_background();
Used in the following template files:
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:
\$header_callback
: Callback to add to "wp_head".none
\$admin_header_callback
: Callback to add to Custom Image Header admin screen.none
Example:
add_custom_image_header( 'oenology_header_style', 'oenology_admin_header_style' );
oenology_header_style()
, and Custom Image Header admin screen style defined in custom function
oenology_admin_header_style()
.Used in the following template files:
add_editor_style()
is a WordPress template tag.
add_editor_style()
is used to add Theme support for WordPress custom visual editor style functionality
add_editor_style( \$stylesheet )
accepts one argument:
\$stylesheet
: name (without file extension) of the CSS file that contains the custom editor style
definitions.'editor-style'
('editor-style.css')Example:
add_editor_style();
Used in the following template files:
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:
\$tag
: WordPress filter into which to hook the function.none
\$function_to_add
: function to hook into the WordPress filter.none
\$priority
: relative priority (order of execution, lower numbers execute sooner) of function.10
\$accepted_args
: number of arguments accepted by function being hooked.1
Example:
add_filter('get_comments_number', 'oenology_comment_count', 0);
oenology_comment_count()
into the get_comment_count
filter,
with the highest priority (0)Used in the following template files:
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:
\$name
: Name of the custom Image Size to be added.none
.\$width
: Width (in pixels) of the custom image.0
.\$height
: Height (in pixels) of the custom image.0
.\$crop
: crop method:false
true
: hard crop modefalse
: soft (proportional/box-resize) crop modeExample:
add_image_size( 'attachment-nav-thumbnail', 45, 45, true );
attachment-nav-thumbnail
, 45px wide, 45px in height, hard-cropped.Used in the following template files:
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:
\$feature
: feature for which to add Theme support.none
'automatic-feed-links'
: Automatically place feed links in document head'post-thumbnails'
: Enable support for Post Thumbnails featureUsed in the following template files:
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:
\$tag
: the name of the filter hook.none
.\$value
: the value to be modified by the specified filter hook.none
Examples:
apply_filters( 'oenology_header_image_width', 1000 ) );
oenology_header_image_width
filter hook.\$title = apply_filters( 'widget_title', empty(\$instance['title']) ? 'oenology Recent Posts' : \$instance['title'] );
widget_title
filter hook, and sets that value
to the variable \$title
.Used in the following template files:
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:
\$index
: name of the dynamic sidebar to include.none
Example:
dynamic_sidebar( 'foo' )
Used in the following template files:
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:
\$show
: the database option for which to return a valuenone
\$default
: the value to return if the option does not exist, or has no value.false
Examples:
if ( 'posts' == get_option( 'show_on_front' ) )
get_option( 'page_comments' )
TRUE
if the "Paged Comments" option is true; otherwise returns FALSE
Used in the following template files:
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:
\$my_obj = \$wp_query->get_queried_object();
\$my_obj
that contains the specified information from \$wp_query
.Used in the following template files:
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:
\$var
: the query variable to return.none
Examples:
get_query_var('paged');
get_query_var('page');
Used in the following template files:
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:
echo get_stylesheet_uri();
Used in the following template files:
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()
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:
\$userid
: the ID of the user for which to return data.none
Example:
\$user_info = get_userdata( \$id );
\$user_info->user_login
\$user_info->user_pass
\$user_info->user_nicename
\$user_info->user_email
\$user_info->user_url
\$user_info->user_registered
\$user_info->display_name
\$user_info->user_firstname
\$user_info->user_lastname
\$user_info->nickname
\$user_info->user_description
Used in the following template files:
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()
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:
home_url();
Used in the following template files:
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:
\$array
: array of arrays containing the following key pairs:none
'url'
=> 'url/path/to/header/image''thumbnail_url'
=> 'url/path/to/header/image/thumbnail''description'
=> 'Description of the header image'Used in the following template files:
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:
\$array
: an array of key pairs, as \$location => \$descriptionnone
\$location
: the menu location, used to add the Menu to a Theme template file\$description
: description of the menu location, used on the Menus admin option pageUsed in the following template files:
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:
\$array:
array containing the following key pairs:none
'name'
=> 'sidebar_name''description'
=> 'Description of the sidebar''before_widget'
=> 'HTML to output before the widget''after_widget'
=> 'HTML to output after the widget''before_title'
=> 'HTML to output before the widget title''after_title'
=> 'HTML to output after the widget title'Used in the following template files:
register_widget()
is a WordPress function.
register_widget()
is used to register a custom Theme Widget.
register_widget( \$widget )
accepts one argument:
\$widget
: function that defines the Widget being registered.none
Used in the following template files:
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:
\$width
: image thumbnail width, in pixels.0
\$height
: image thumbnail height, in pixels.0
\$crop
: whether thumbnail should be cropped.false
true
: hard-crop: image is resized and cropped to match the specified dimensions exactlyfalse
: soft-crop (box-resize): image is resized proportionallyUsed in the following template files:
size_format()
is a WordPress function.
size_format()
is used to format filesizes into human-readable.
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:
\$bytes
: filesize value (up to 32bits)none
\$decimals
: decimal places to return.0
.Example:
size_format( '1048576' );
Used in the following template files:
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:
\$handle
: handle (name) of the script.null
\$src
: URL path to script file.null
\$deps
: script dependencies.null
\$ver
: script version number.null
\$in_footer
: whether to output script in the footer.false
true
: output script in footer, via wp_footer
hook.false
: (default) output script in header, via wp_head
hook.Used in the following template files:
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:
[path]
- base directory and sub directory or full path to upload directory[url]
- base url and sub directory or absolute URL to upload directory.[subdir]
- sub directory if uploads use year/month folders option is on.[basedir]
- path without subdir.[baseurl]
- URL path without subdir.[error]
- set to false.wp_upload_dir( \$time )
accepts one argument:
\$time
: year/month upload directory (if this option is configured).null
.'yyyy/mm'
: required string formatExample:
\$upload_dir = wp_upload_dir();
echo \$upload_dir['baseurl'];
Used in the following template files:
Codex Reference: Template Tags
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()
is a WordPress template tag.
category_description()
is used to display the description for the current category.
category_description( \$cat )
accepts one argument:
\$cat
: category (ID) for which to display the description.category_description()
must be used within the Loop, unless given a category ID
using the \$cat
argument.
Used in the following template files:
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:
\$args
: ampersand (&) joined list of arguments.\$postid
: ID of the post to which the comment form should post comments.Example:
comment_form();
comment_form()
must be used from within the Loop, unless the \$postid parameter is used.
Used in the following template files:
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:
<a href="comments_link();">Comments</a>
comments_link()
must be used within the Loop.
Used in the following template files:
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:
\$zero
: text to display for 0 comments.'No comments'
\$one
: text to display for 1 comment.'1 comment'
\$more
: text to display for multiple comments.'% comments'
(where %
represents the number of comments)Example:
comments_number('0','1','%');
displays:comments_number()
must be used within the Loop.
Used in the following template files:
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:
\$link
: link text to display.'Edit This'
\$before
: text to display before link.''
(no text).\$after
: text to display after link.''
(no text).\$id
: ID of post to be edited.Example:
edit_post_link( 'Edit' );
edit_post_link()
must be used within the Loop, unless the \$id argument is specified.
Used in the following template files:
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:
\$id_or_email
: UserID or email address.none
\$size
: width/height (in pixels) of the displayed avatar.96
\$default
: URL for default image to display if the user has no defined avatar.\$alt
: alt text to display for avatar image.''
(no alt text)Example:
echo get_avatar( get_the_author_meta('email'), \$size = '20');
To get the Avatar without displaying it, omit "echo" in the function call to get_avatar()
.
Used in the following template files:
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:
\$show
: parameter to be returned.'name'
'charset'
= (character set defined for the blog (see wp-config.php); usually UTF-8)'description'
= (blog description, as defined on the General Settings page in the administration panel)'html_type'
= (HTML type, as defined on the General Settings page in the administration panel. Usually "text/html")'name'
= (blog name, as defined on the General Settings page in the administration panel)'version'
= (version of WordPress installed)
\$filter
: how to filter returned parameter.'raw'
'Display'
= pass the returned value through wptexturize()
before returning'raw'
= display returned value as-is, with no filterget_bloginfo()
: Used in the following template files:
bloginfo()
: Used in the following template files:
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:
\$cat->cat_ID
: the ID of the category\$cat->cat_name
: the name of the category\$cat->category_nicename
: the nicename (slug) of the category\$cat->category_description
: the description of the category\$cat->category_parent
: the name of the parent category of the category\$cat->category_count
: the count of posts included in the categoryget_the_category()
returns an object of categories. The returned
object includes the following variables for each category:
\$cat[n]->cat_ID
: the ID of category 'n'\$cat[n]->cat_name
: the name of category 'n'\$cat[n]->category_nicename
: the nicename (slug) of category 'n'\$cat[n]->category_description
: the description of category 'n'\$cat[n]->category_parent
: the name of the parent category of category 'n'\$cat[n]->category_count
: the count of posts included in category 'n'wp_get_post_categories()
returns an array of Category IDs.
get_category( \$category, \$output, \$filter )
accepts three arguments:
\$category
: category ID for which to return the category array.none
\$output
: post ID for which to return the category array.'OBJECT'
'OBJECT'
= return as an object'ARRAY_A'
= return as an associative array'ARRAY_N'
= return as a numerically indexed array\$filter
: how to filter returned parameter.'raw'
'raw'
= display returned value as-is, with no filterget_the_category( \$id )
accepts one argument:
\$id
: post ID for which to return the category array.the_category( \$separator, \$parents, \$id )
accepts three arguments:
\$separator
: string placed between categories.\$parents
: determines how to display links to child categories.null
'single'
: Display link to each category, exhibiting parent/child relationship'multiple'
: Display a link to child category only, exhibiting parent/child relationshipnull
: Display link to each category, with no parent/child relationship exhibited\$id
: post ID for which to return the category array.wp_get_post_categories( \$id, \$args )
accepts two arguments:
\$id
: PostID for which to retrieve the categories.\$args
: an array of arguments. See Codex.Examples:
\$cat = get_the_category(); \$cat = \$cat[0]; echo \$cat->category_nicename;
the_category( ', ');
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()
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:
\$category
: category ID for which to return the list.\$displaylink
: whether to display the list as links to the categories.true
true
: display list as links to categoriesfalse
: display list as text-only\$separator
: string to be used as separator between categories in the list.'»»'
\$nicename
: whether to display the category nicename (slug)false
true
: Display the category nicename (e.g. "my-category")false
: Display the category display name (e.g. "My Category")Used in the following template files:
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:
\$comment
: ID for comment for which to output link.\$args
: ampersand (&) linked array of options.`array( 'page' => '0', 'type' => 'all', 'per_page' => '0', 'max_depth' => '' )`
Example:
<a href="echo get_comment_link();">Comment</a>
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()
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()
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()
if (get_comment_pages_count() > 1 )
get_comment_pages_count()
must be used from within the Loop.
Used in the following template files:
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();
if ( get_comment_type() != "comment" )
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:
\$year
: the year from which to retrieve the archive URL.\$month
: the month from which to retrive the archive URL.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:
\$id
: ID of the post for which to return the permalink.the_permalink()
accepts no arguments.
Example:
echo get_permalink(\$post->post_parent);
<a href="the_permalink();">Permalink</a>
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()
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
\$post
: a variable containing the PostID interger valuenone
\$output
: 'OBJECT'
'OBJECT'
: returns an object'ARRAY_A'
: returns an associative array'ARRAY_N'
: returns a numerically indexed arrayExample (the Loop):
if ( have_posts() ) : while ( have_posts() ) : the_post();
get_post()
: Used in the following template files:
the_post()
: Used in the following template files:
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:
\$postid
: the ID of the post for which to return the Post Format type.Used in the following template files:
get_posts()
is a WordPress template tag.
get_posts()
is used to create/output multiple Post Loops.
get_posts( \$args )
accepts one argument:
\$args
: query arguments.array(
'numberposts' => 5,
'offset' => 0,
'category' => ,
'orderby' => 'post_date',
'order' => 'DESC',
'include' => ,
'exclude' => ,
'meta_key' => ,
'meta_value' => ,
'post_type' => 'post',
'post_mime_type' => ,
'post_parent' => ,
'post_status' => 'publish'
)
Used in the following template files:
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();
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:
\$tagid
: ID of the tag for which to display the RSS feed.none
\$feed
: feed format.'rss'
: RSS 1.0 format'rss2'
: RSS 2.0 format'atom'
: ATOM 0.92 formatExample:
get_tag_feed_link( \$wp_query->get( 'tag_id' ) );
get_tag_feed_link()
must be used outside the Loop.
Used in the following template files:
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:
\$tag[n]->tag_ID
: the ID of tag 'n'\$tag[n]->tag_name
: the name of tag 'n'\$tag[n]->tag_nicename
: the nicename (slug) of tag 'n'\$tag[n]->tag_description
: the description of tag 'n'\$tag[n]->tag_count
: the count of posts included in tag 'n'get_tags( \$args )
accepts one argument:
\$args
: array of query arguments.array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => true,
'exclude' => '',
'include' => '',
'number' => ,
'offset' => ,
'fields' => 'all',
'slug' => '',
'hierarchical' => true,
'search' => '',
'name__like' => '',
'post_status' => 'publish'
)
get_the_tags( \$id )
accepts one argument:
\$id
: post ID for which to return the tag array.the_tags( \$before, \$separator, \$after )
accepts three arguments:
\$before
: string placed before tags.'Tags: '
.\$separator
: string placed between tags.', '
.\$after
: string placed after the last tag.null
.the_tags()
must be used within the Loop.
the_tags()
: Used in the following template files:
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()
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:
\$field
: field name for data item to be displayed.none
\$userID
: ID for user for whom data item is displayed.Example:
get_the_author_meta( 'email' );
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()
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:
\$more_link_text
: string to display for the "read more" link, if <!--more-->
is used in the post.'(more...)'
\$strip_teaser:
whether to strip the "teaser" content (i.e. the content before
<!--more-->
) on the single post view.false
false
: displays the teaser contenttrue
: strips the teaser contentget_the_content()
/the_content()
must be used within the Loop.
the_content()
: Used in the following template files:
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:
\$d
: date format.get_option( 'date_format' )
date()
function reference for list of date-format stringsExample:
the_date( 'Y' );
get_the_date()
/the_date()
must be used within the Loop.
the_date()
: Used in the following template files:
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()
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()
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:
\$id:
ID of the Post for which to return the Post Thumbnail.none
\$size
: size of the thumbnail image:'thumbnail'
'thumbnail'
'medium'
'large'
'full'
array( 'W', 'H' , \$crop )
'W'
: width, in pixelsnone
'H'
: height, in pixelsnone
\$crop
: boolean (true/false) forced-cropping of image to specified dimensions.false
true
: hard-cropfalse
: box-resize\$attr:
used to override default attributes, such as src, alt, title, or classnone
the_post_thumbnail()
must be used within the Loop.
the_post_thumbnail()
: Used in the following template files:
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:
\$d
: time format.get_option( 'time_format' )
date()
function reference for list of time-format stringsExample:
the_time( 'Y' );
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()
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:
\$id
: ID of the post for which to return the Post Title.none
the_title( \$before, \$after, \$echo )
accepts three arguments:
\$before
: text string to display before the title.''
(no text)\$after
: text string to display after the title.''
(no text)\$echo
: whether to return or output the Title.true
true
: prints/displays the Titlefalse
: returns, but does not print/display, the TitleExample:
echo get_the_title(\$post->post_parent);
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()
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:
<a href="get_trackback_url();">Trackback</a>
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:
\$year
: year for which to return the year-archive URL.Used in the following template files:
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:
\$label
: text label for the link text.''
(no label).\$max_page
: maximum number of comment pages on which to place the link.0
(no limit)Examples:
next_comments_link( '<span class="meta-nav">←</span> Older Comments' );
next_comments_link( 'Newer Comments <span class="meta-nav">→</span>' );
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()
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:
\$format
: format of the link, using the %link% placeholder for the HTML link."%link% »"
/"« %link%"
\$link
: text to display within the HTML link."%title%"
(Post Title)\$in_same_cat
: whether linked post must be in the same category as the
current post.false
true
: previous/next in same categoryfalse
: previous/next post, chronologically\$exclude_categories
: list of categories by ID, separated by 'and', to exclude.none
Example:
next_post_link( '%link', '⇐ ' );
previous_post_link( '%link', '⇒ ' );
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()
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:
\$sep
: text displayed between "Previous" and "Next" links.' :: '
.\$prelabel
: Link text displayed for "Previous" link.'<< Previous Page'
.\$nxtlabel
: Link text displayed for "Next" link.'Next Page >>'
.Example:
posts_nav_link(' ♦ ','«« Newer Posts','Older Posts »»');
posts_nav_link()
must be used within the Loop.
Used in the following template files:
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:
\$prefix
: string to display before the category title.''
(no text)\$display
: whether display or return the value.true
true
: display/print the valuefalse
: return, but do not print/display, the valuesingle_cat_title()
must be used outside the Loop.
Used in the following template files:
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:
\$prefix
: string to display before the tag title.''
(no text)\$display
: whether display or return the value.true
true
: display/print the valuefalse
: return, but do not print/display, the valuesingle_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:
\$text
: Link text to display.'This is the shortlink'
\$title
: HTML anchor tag title attribute text (displays in tooltip on hover).\$before
: string to display before the Shortlink.''
(no text)\$after
: string to display after the Shortlink.''
(no text)wp_get_shortlink( \$id, \$context, \$allow_slugs )
accepts three arguments:
\$id
: ID of the post for which to get the shortlink.0
(current post)\$context
: Context for shortlink:post
'blog'
: shortlink for the site'post'
: shortlink for a Post'media'
: shortlink for attached media\$allow_slugs
: whether to allow post slugs in the shortlink.false
true
: allow post slugs (intended for Theme/Plugin implementation)false
: do not allow post slugsExample:
the_shortlink( 'Shortlink' );
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()
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:
\$widget
: name of the Widget to be output.none
\$instance
: Widget instance settings (e.g. Title)none
\$args
: Widget argumentsarray(
'before_widget' => '<div class="widget {widget's classname}">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>'
)
Example:
the_widget( 'WP_Widget_Calendar' )
will display the Calendar Widget.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()
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:
\$id
: the ID of the attachmentnone
\$size
: size of the thumbnail image:'thumbnail'
'thumbnail'
'medium'
'large'
'full'
array( 'W', 'H' , \$crop )
'W'
: width, in pixelsnone
'H'
: height, in pixelsnone
\$crop
: boolean (true/false) forced-cropping of image to specified dimensions.false
true
: hard-cropfalse
: box-resize\$icon
: whether to return the media icon for the attachmentfalse
true
: return media iconfalse
: do nto return media iconUsed 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:
\$id
: the ID of the attachment\$size
: string ("thumbnail", "large", etc.), or array ( array('width','height') ). Default: "thumbnail"\$permalink
: boolean: return permalink (TRUE) or the file directly (FALSE). Default: TRUE\$icon
: boolean: return the media icon for the attachment (TRUE). Default: FALSE\$id
: the ID of the attachmentnone
\$size
: size of the thumbnail image:'thumbnail'
'thumbnail'
'medium'
'large'
'full'
array( 'W', 'H' , \$crop )
'W'
: width, in pixelsnone
'H'
: height, in pixelsnone
\$crop
: boolean (true/false) forced-cropping of image to specified dimensions.false
true
: hard-cropfalse
: box-resize\$permalink
: whether to the attachment file or pagefalse
true
: link to the attachment pagefalse
: link to the attachment file\$icon
: whether to return the media icon for the attachmentfalse
true
: return media iconfalse
: do nto return media icon\$text
: text to display for text link to attachment.false
Used in the following template files:
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:
wp_get_current_user();
echo \$current_user->display_name;
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.
'before'
: text string to display before the output. Default:'<p>Pages:''after'
: text string to display after the output. Default: '</p>''link_before'
: text string to output before each link. Default: NULL 'link_after'
: text string to output after each link. Default: NULL'next_or_number'
: display either "Previous/Next" links ('next') or page numbers ('number'). Default: 'number''nextpagelink'
: text string to display for "Next" page link (if 'next_or_number' is 'next'. Default: 'Next page''previouspagelink'
:text string to display for "Previous" page link (if 'next_or_number' is 'next'. Default: 'Previous page''pagelink'
: text string to display for page numbers (if 'next_or_number' is 'number'), where % returns the page number. Default: '%''more_file'
: page to which the link points. Default: NULL (i.e. current post) 'echo'
: (boolean) output (print/display) or return (for use in PHP) the output. Default: 1 (i.e. TRUE; print/display output)Example:
wp_link_pages( 'before=<p class="link-pages">Page: ' );
wp_link_pages()
must be used within the Loop.
Used in the following template files:
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:
\$args
: query arguments.array(
'walker' => null,
'max_depth' => ,
'style' => 'ul',
'callback' => null,
'end-callback' => null,
'type' => 'all',
'page' => ,
'per_page' => ,
'avatar_size' => 32,
'reverse_top_level' => null,
'reverse_children' =>
)
max_depth
: for threaded comments, the maximum thread depth.style
: HTML structure for the comment list.'ul'
'ul'
: Unordered list'ol'
: Ordered list'div'
: DIV container'div'
or 'ol'
, wp_list_comments()
must be wrapped in a containing element of the specified type (i.e. <div></div> or <ol></ol>)type
: comment type to include.'all'
'all'
: comments, trackbacks, and pingbacks'comment'
: comments only'trackback'
: trackbacks only'pingback'
: pingbacks only'pings'
: trackbacks and pingbacksavatar_size
: size (px) of the user avatar.32
per_page
: number of comments to display per comments page.reverse_top_level
: whether to display the newest comments first.true
: display newest comments firstfalse
: display oldest comments firstExample:
wp_list_comments( 'type=comment&avatar_size=40' );
wp_list_comments()
must be used from within the Loop.
Used in the following template files:
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:
\$args
: query arguments.array(
'depth' => 0,
'show_date' => '',
'date_format' => get_option('date_format'),
'child_of' => 0,
'exclude' => '',
'include' => '',
'title_li' => __('Pages'),
'echo' => true,
'authors' => '',
'sort_column' => 'menu_order, post_title',
'link_before' => '',
'link_after' => '',
'walker => ''
)
Used in the following template files:
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:
\$redirect
: redirect location after login/out.none
(current location - no redirect)\$echo
: whether to return or display the link.true
true
: print/display the linkfalse
: return, but do not print/display, the linkUsed 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:
\$args
: query arguments.array(
'theme_location' => ,
'menu' => ,
'container' => 'div',
'container_class' => 'menu-{menu slug}-container',
'container_id' => ,
'menu_class' => 'menu',
'menu_id' => ,
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => ,
'after' => ,
'link_before' => ,
'link_after' => ,
'depth' => 0,
'walker' =>
)
'theme_location'
: (string) Theme-defined (via register_nav_menu()
/register_nav_menus()
) menu location'menu'
: (string) User-defined (via Dashboard -> Appearance -> Menus) menu ID, slug, or name'container'
: (string) container element to wrap around the menu'container_class'
: (string) CSS class for container element'container_id'
: (string) CSS ID for container element'menu_class'
: (string) CSS class for menu <ul>
'menu_id'
: (string) CSS ID for menu <ul>
'echo'
: (boolean) whether to return (false
) or display/print (true
) the menu'fallback_cb'
: (callback) function to use as a fallback if no menu is defined'before'
: (string) text to output before the menu link opening anchor tag <a>
'after'
: (string) text to output after the menu link closing anchor tag </a>
'link_before'
: (string) text to output before the menu link text'link_after'
: (string) text to output after the menu link text'depth'
: (integer) how many levels of hierarchy to display.'walker'
: (object) custom walker object, via new Walker_Nav_Menu
Used in the following template files:
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:
\$before
: string to display before link.'<li>'
\$after
: string to display after link.'</li>'
\$echo
: whether to return or print/display the result.true
true
: print/display the resultfalse
: return, but do not print/display, the resultExample:
wp_register( '' , '' );
Used in the following template files:
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:
\$sep
: string to display as separator.'»'
\$echo
: whether to return or print/display the result.true
true
: print/display the resultfalse
: return, but do not print/display, the result\$seplocation
: separator location.none
'right'
: separator will be placed to the right of the Post Title'right'
: separator will be placed to the left of the Post TitleUsed in the following template files:
Codex Reference: Include Tags
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.
\$file
: the template file to be included.'comments.php'
\$separate_comments
: whether to separate comments by type.false
true
: separate comments by typefalse
: do not separate comments by typeUsed 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:
\$name
: name of the footer, as "footer-\$name.php", to include.null
(include "footer.php")Used in the following template files:
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:
\$name
: name of the header, as "header-\$name.php", to include.null
(include "header.php")Used in the following template files:
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()
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:
\$name
: name of the sidebar, as "sidebar-\$name.php", to include.null
(include "sidebar.php")Used in the following template files:
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:
\$slug
: slug of the template part, as "\$slug.php", to include.none
\$name
: name of the template part, as "\$slug-\$name.php", to include.null
(include "\$slug.php")Used in the following template files:
Codex Reference: Conditional Tags
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:
\$postid
: PostID of the post being checked. Defaults to the current post.comments_open()
must be used from within the Loop, unless the \$postid parameter is used.
Used in the following template files:
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()
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:
if ( have_comments() )
have_comments()
must be used from within the Loop.
Used in the following template files:
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):
if ( have_posts() ) : while ( have_posts() ) : the_post();
Used in the following template files:
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 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 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 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 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:
\$category
: category ID, slug, or nicename. If used, will return TRUE
if the current
page corresponds to the indicated category.Used in the following template files:
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 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 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 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 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:
\$page
: page ID, slug, or nicename. If used, will return TRUE if the current
page corresponds to the indicated page.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 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 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_single()
- a single post ("post" post-type, i.e. a single blog post) is displayedis_page()
- a page ("page" post-type) is displayedis_attachment()
- an attachment is_singular()
accepts no arguments.
Used in the following template files:
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:
\$tag
: tag ID, slug, or nicename. If used, will return TRUE if the current
page corresponds to the indicated tag.Used in the following template files:
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 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()
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:
if ( post_password_required() )
post_password_required()
must be used from within the Loop.
Used in the following template files:
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:
Codex References:
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
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
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
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
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
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
is a WordPress filter hook.
wp_title
is used to modify the output of the wp_title()
function.
Used in the following template files:
\$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:
\$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:
\$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
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:
\$post->ID
: ID of the current Post\$post->post_title
: title of the current Post\$post->post_content
: content of the current Post\$post->post_excerpt
: excerpt of the current PostUsed in the following template files:
\$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:
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:
define( 'HEADER_IMAGE_HEIGHT', '198' );
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:
define( 'HEADER_IMAGE_WIDTH', '1000' );
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:
define( 'HEADER_TEXTCOLOR', '000000' );
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.
true
: User cannot change the header text colorfalse
: User can change the header text colorExample:
define( 'NO_HEADER_TEXT', false );
\$_SERVER[]
is a PHP function that returns various server variables.
Example:
\$_SERVER['PHP_SELF']
Used in the following template files:
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:
\$callback
: the function to apply to the array\$array
: the array to which to apply the functionUsed in the following template files:
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:
\$array
: the array to reverse\$preserve_keys
: (boolean) set to TRUE to preserve keysExample:
\$breadcrumbs = array_reverse(\$breadcrumbs);
\$breadcrumb
array (containing a list of Parent Categories)Used in the following template files:
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:
\$array
: array for which to return valuesUsed in the following template files:
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:
\$path
: string containing a filepath\$ext
: file extension, e.g. ".php". If included, the indicated extension will omitted from the returned valueUsed in the following template files:
count()
is a PHP function.
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:
\$array
: the array for which to count the elements.\$mode
: count normally, or count recursively. Default: count_normal.Example:
count(\$comments_by_type['comment']);
Post->\$ID
.Used in the following template files:
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:
\$args
: the arguments to pass to the function\$code
: the function codeUsed in the following template files:
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()
is a PHP function.
define()
is used to define a named constant.
define( \$name, \$value, \$case_insensitive )
accepts arguments:
\$name
: name of the constant. Default: none.\$value
: value of the constant. Default: none.\$case_insensitive
: (boolean) determines if constant name is case-sensitive or not.TRUE
: name is case-sensitive ("CONSTANT" and "constant" are two different constants)FALSE
: name is case-insensitive ("CONSTANT" and "constant" are the same constant)FALSE
Example:
define( 'HEADER_TEXTCOLOR', '000000' );
Used in the following template files:
max()
is a PHP function.
max()
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:
\$arg1, \$arg2, etc
: a list of valuesmax( \$array )
accepts one argument:
\$array
: an array, for which each array value will be evaluated.
Example:
max( \$paged, \$page ) );
Used in the following template files:
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:
\$number
: the number to be formatted\$decimals
: (optional) the number of decimal places. Default: 0\$dec_point / \$thousands_sep
: (optional, but must be in tandem if used) string value to use for
decimal place and thousands separator. Defaults: dot (".") for decimal place, and comma (",") for
thousands separator.Used in the following template files:
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:
\$pattern
: the pattern for which to search\$replacement
: the string with which to replace found instances of \$pattern
\$subject
: the string on which to perform the search (for \$pattern
)-and-replace (with \$replacement
)Used in the following template files:
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:
\$file
(string): file to be included.Example:
require_once( 'foo.php' )
Used in the following template files:
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()
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:
\$search
: string to be replaced. Can be a string, or an array of strings\$replace
: string with which to replace. Can be a string, or an array of strings.\$subject
: string from within to search/replace. Can be a string, or an arrya of strings.\$count
: integer. If passed, holds the number of replacements performed.Used in the following template files:
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:
\$string
: string to be trimmedUsed in the following template files:
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:
\$string
: string to URL-encodeUsed in the following template files:
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:
\$filepath
: (string) the filepath and filename, e.g. '/path/to/my/file.ext'
Example:
file_exists( get_theme_root() . '/twentyten/style.css' )
Used in the following template files:
filesize()
is a PHP conditional.
filesize()
is used to return the size, in bytes, of the specified file
filesize( \$file )
accepts one argument:
\$file
: string containing full path to file for which to return the size.Used in the following template files:
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 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()
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:
\$arg
: variable to evaluateisset()
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:
if ( ! isset( \$content_width ) ) {
\$content_width = 640;
}
\$content_width
variable is set. If \$content_width
is not already
set, then it is set to a value of "640".Used in the following template files:
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()
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()
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()
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()
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:
\$image_meta['image']
: image output, using wp_get_attachment_image()\$image_meta['url']
: image attachment url, using wp_get_attachment_url()\$image_meta['width']
: image width, in px\$image_meta['height']
: image height, in px\$image_meta['dimensions']
: image width/height dimensions, in px, displayed as "# x # px"\$image_meta['filesize']
: image filesize, converted to human-readable size format, displayed as e.g. "### kb"\$image_meta['created_timestamp']
: image metadata - date/time image taken, displayed as "D MMM YYYY"\$image_meta['copyright']
: image metadata - copyright statement\$image_meta['credit']
: image metadata - photographer\$image_meta['aperture']
: image metadata - camera aperture setting\$image_meta['focal_length']
: image metadata - camera focal length setting, displayed as "f/###"\$image_meta['iso']
: image metadata - camera ISO setting\$image_meta['shutter_speed']
: image metadata - camera shutter speed setting, displayed as e.g. "1/### sec"\$image_meta['camera']
: image metadata - camera type\$image_meta['caption']
: the image caption, as defined in image settingsoenology_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:
\$links['prevlink']
: text link to previous gallery image\$links['prevthumb']
: thumbnail of previous gallery image\$links['nextlink']
: text link to next gallery image\$links['nextthumb']
: thumbnail of next gallery imageoenology_gallery_links()
accepts no arguments.
Used in the following template files:
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()
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()
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()
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()
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()
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()
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()
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()
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()
is a custom Theme Widget.
oenology_widget_tags()
outputs the default "Tags" Widget, but adds a "show/hide"
toggle to the Widget output.
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: