WP VisualCheatSheet PDF
WP VisualCheatSheet PDF
★ DATE & TIME ★ EDIT LINK ★ TRACKBACK ★ PERMALINK ★ LINKS MANAGER ★ QUERY ★ TITLE
LEGEND C WordPress is a
★ BLOG INFO TAGS ★ LISTS AND DROPDOWN TAGS
Displays information about your blog, mostly gathered from the $args / show_option_all | orderby | order | show_last_update <?php wp_page_menu( $args ); ?>
information you supply in Users > Your Profile and General | style | show_count | hide_empty | use_desc_for_title |
Options from the WordPress Administration Panels child_of | feed | feed_type | feed_image | exclude | exclude_tree $args / sort_column | menu_class | include | echo |
★ INCLUDE TAGS | include | current_category | hierarchical | title_li | number | show_home | link_before | link_after
<?php bloginfo_rss( $show ); ?> echo | depth
<?php get_footer( $name ); ?>
$name {s}
WORDPRESS VISUAL CHEAT SHEET ★ INCLUDE ★ BLOG INFO ★ LIST & DROPDOWN ★ LOGIN/LOGOUT ★ POST ★ COMMENT ★ CATEGORY ★ TAG ★ AUTHOR
★ DATE & TIME ★ EDIT LINK ★ TRACKBACK ★ PERMALINK ★ LINKS MANAGER ★ QUERY ★ TITLE
the_excerpt previous_posts_link
the_ID
is_user_logged_in Displays the excerpt of the current post with [...] at the end, This creates a link to the next posts. Yes, it says "previous posts,"
Displays the numeric ID of the current post. which is not a "read more" link.
This Conditional Tag checks if the current visitor is logged in. but it's named that just to confuse you. It assumes that your
This is a boolean function, meaning it returns either TRUE or posts are displaying in reverse chronological order (most recent
<?php the_ID(); ?> <?php the_excerpt(); ?>
FALSE. posts first) causing the previous page to show posts from later
in the timeline.
<?php if ( is_user_logged_in() ) { ... } ?> the_excerpt_rss
the_title <?php previous_posts_link
Displays the excerpt of the current post formatted for RSS.
Displays or returns the title of the current post. ( $label , $max_pages ); ?>
<?php the_excerpt_rss(); ?>
wp_login_url <?php the_title( $before, $after, $display );?>
$label {s} / $max_pages {int}
This Template Tag returns the URL that allows the user to log in wp_link_pages
$before {s} / $after {s} / $display {b}
to the site. Displays page-links for paginated posts (i.e. includes the <!-- next_image_link
nextpage--> Quicktag one or more times).
<?php echo wp_login_url( $redirect ); ?> This creates a link to the next image attached to the current
the_title_rss post.
<?php wp_link_pages( $args ); ?>
$redirect {s} Displays the title of the current post, formatted for RSS.
<?php next_image_link
$args / before | after | link_before | link_after |
<?php the_title_rss(); ?> ( [string $size = 'thumbnail'], [string $text =
next_or_number | nextpagelink | previouspagelink | pagelink |
wp_logout_url more_file | echo false] ); ?>
This Template Tag returns the URL that allows the user to log posts_nav_link
the_title_attribute
out to the site. previous_image_link
Displays or returns the title of the current post. It somewhat Displays links for next and previous pages. Useful for providing
<?php echo wp_logout_url( $redirect ); ?> duplicates the functionality of the_title(), but provides a "paged" navigation of index, category and archive pages. This creates a link to the previous image attached to the current
'clean'version of the title by stripping HTML tags and post.
$redirect {s} converting certain characters (including quotes) to their <?php posts_nav_link
character entity equivalent; it also uses query-string style ('sep','prelabel','nxtlabel'); ?> <?php previous_image_link
parameters. This tag must be within The Loop. ( [string $size = 'thumbnail'], [string $text =
wp_lostpassword_url ‘sep’ {s} / ‘prelabel’ {s} / ‘ nxtlabel’ {s} false] ); ?>
<?php the_title_attribute
This Template Tag returns the URL that allows the user to ( $before, $after, $display );?> next_post_link
retrieve the lost password. sticky_class
$before {s} / $after {s} / $display {b} Used on single post permalink pages, this template tag displays
<?php echo wp_lostpassword_url( $redirect ); ?> a link to the next post which exists in chronological order from Displays the sticky post class on a post if applicable.
the current post.
<?php sticky_class(); ?>
$redirect {s}
single_post_title <?php next_post_link
Displays or returns the title of the post when on a single post ('format', 'link', 'in_same_cat',
page (permalink page). the_category
'excluded_categories'); ?>
Displays a link to the category or categories a post belongs to.
wp_logout <?php single_post_title( $prefix, $display ); ?> ‘format’ {s} / ‘ link’ {s} / ‘ in_same_cat’ {b} / ‘
excluded_categories’ {s} <?php the_category( $separator, $parents ); ?>
Log the current user out, by destroing the current user session.
$prefix {s} / $display {b}
<?php wp_logout(); ?> next_posts_link $separator {s} / $parents {s}
This creates a link to the previous posts. Yes, it says "next posts,"
the_content but it's named that just to confuse you. It assumes that your the_category_rss
Displays the contents of the current post. posts are displaying in reverse chronological order (most recent
wp_loginout posts first) causing the next page to show posts from earlier in Displays the name of the category or categories a post belongs
the timeline. to in RSS format.
Displays a login link, or if a user is logged in, displays a logout <?php the_content
link. An optional, redirect argument can be used to redirect the ($more_link_text, $strip_teaser, $more_file);?> <?php next_posts_link( $label , $max_pages ); ?> <?php the_category_rss( $type ) ?> {s}
user upon login or logout.
$more_link_text {s} / $strip_teaser {b / $more_file {s} $label {s} / $max_pages {int}
<?php wp_loginout( $redirect ); ?> the_tags
This template tag displays a link to the tag or tags a post
$redirect {s} previous_post_link belongs to.
the_content_rss
Used on single post permalink pages, this template tag displays
Displays the content of the current post formatted for RSS. <?php the_tags( $before, $separator, $after );?>
a link to the previous post which exists in chronological order
wp_register from the current post.
<?php the_content_rss
This tag displays either the "Register" link to users that are not $before {s} / $separator {s} / $after {s}
logged in or the "Site Admin" link if a user is logged in. ('more_link_text', strip_teaser,'more_file', cut <?php previous_post_link
, encode_html); ?> ('format', 'link', in_same_cat,
<?php wp_register( $before, $after ); ?> the_meta
‘excluded_categories'); ?>
$more_link_text {s} / $strip_teaser {b} / $more_file {s} / Displays an unordered list of meta "key:value" pairs, or the
$before {s} / $after {s} $cut {int} / $encode_html {int} post-meta, for the current post.
‘format’ {s} / ‘ link’ {s} / ‘ in_same_cat’ {b} / ‘
excluded_categories’ {s}
<?php the_meta(); ?>
WORDPRESS VISUAL CHEAT SHEET ★ INCLUDE ★ BLOG INFO ★ LIST & DROPDOWN ★ LOGIN/LOGOUT ★ POST ★ COMMENT ★ CATEGORY ★ TAG ★ AUTHOR
★ DATE & TIME ★ EDIT LINK ★ TRACKBACK ★ PERMALINK ★ LINKS MANAGER ★ QUERY ★ TITLE
★ COMMENTS TAGS
comment_id_fields comment_type
wp_list_comments permalink_comments_rss
Displays the type of comment (regular comment, Trackback or
Displays all comments for a post or Page based on a variety of Generates two hidden inputs for the comment form to identify Displays the permalink to the post to which a comment belongs,
Pingback) a comment entry is.
parameters including ones set in the administration area. the comment_post_ID and comment_parent for threaded formatted for RSS.
comments.
<?php comment_type
<?php wp_list_comments( $args ); ?> <?php permalink_comments_rss(); ?>
<?php comment_id_fields(); ?> ('comment', 'trackback', 'pingback'); ?>
$args / walker | max_depth | style | callback | end-callback |
‘ comment’ {s} / ‘ trackback’ {s} / ‘ pingback’ {s}
type | page | per_page | avatar_size | reverse_top_level | comment_reply_link
reverse_children comment_author
Displays a link that lets users post a comment in reply to a
Displays the comment author name; that is, the one supplied by comment_text specific comment.
comments_number the commenter. Displays the text of a comment.
<?php comment_reply_link(array_merge
Displays the total number of comments, Trackbacks, and <?php comment_author(); ?> <?php comment_text(); ?>
Pingbacks for a post. ( $args, array
('reply_text' => 'Reply', 'add_below' =>
<?php comments_number('zero', 'one', 'more');?> comment_excerpt $add_below, 'depth' => $depth, 'max_depth' =>
comment_author_link Displays an excerpt (maximum of 20 words) of a comment's $args['max_depth']))); ?>
‘zero’ {s} / ‘ one’ {s} / ‘ more’ {s} text.
Displays the comment author's name linked to his/her URL, if
one was provided.
<?php comment_excerpt(); ?> cancel_comment_reply_link
comments_link <?php comment_author_link(); ?>
Displays a link which cancels the replying to a previous
Displays the URL to a post's comments. comment_date comment (a nested comment) and resets the comment form
back to the default state.
<?php comments_link(); ?> Displays the date a comment was posted.
comment_author_email <?php cancel_comment_reply_link('text'); ?>
<?php comment_date('d'); ?>
Displays the comment author's email address, not linked.
‘ text’ {s}
✽ comments_rss_link
<?php comment_author_email(); ?>
This function has been deprecated, please use comment_time
post_comments_feed_link(). Displays the time a comment was posted. previous_comments_link
<?php comments_rss_link('text', 'file'); ?> comment_author_email_link This creates a link to the previous comments page containing
<?php comment_time('d'); ?>
Displays the comment author's email address, as a mailto link. older comments.
‘text’ {s} / ‘file’ {s}
<?php comment_author_email_link comment_form_title <?php previous_comments_link( 'Label' ); ?>
('linktext', 'before', 'after'); ?> Displays text based on comment reply status.
Label’ {s}
comments_popup_script ‘ linktext’ {s} / ‘ before’ {s} / ‘ after’ {s} <?php comment_form_title
Outputs the JavaScript code for a comments popup window. ('noreplytext', 'replytext', 'linktoparent' );?>
next_comments_link
<?php comments_popup_script(width, height);?> comment_author_url ‘ noreplytext’ {s} / ‘ replytext’ {s} / ‘ linktoparent’ {s}
This creates a link to the next comments page containing newer
Displays the comment author's URL (usually their web site), not comments.
width {int} / height {int} linked.
comment_author_rss
<?php next_comments_link
<?php comment_author_url(); ?> Displays the comment author's name formatted for RSS.
('Label', 'Max number of pages (default 0)');?>
comments_popup_link <?php comment_author_rss(); ?>
‘ Label’ {s} / ‘Max number of pages (default 0)’ {int}
Displays a link to the comments popup window if
comment_author_url_link
comments_popup_script() is used, otherwise it displays a
normal link to comments. Displays the comment author's URL (usually their web site), comment_text_rss
linked, if one was provided. paginate_comments_links
<?php comments_popup_link Displays the text of a comment formatted for RSS.
<?php comment_author_url_link Generate a new way to list the paged comments in the comment
('zero','one','more','CSSclass','none'); <?php comment_text_rss(); ?> template. Instead of using Previous or Next Comments links, it
?> ('linktext', 'before', 'after'); ?> displays a full list of comment pages using numeric indexes.
‘zero’ {s} / ‘ one’ {s} / ‘ more’ {s} / ‘ CSSclass’ {s} / ‘ none’ {s} ‘ linktext’ {s} / ‘ before’ {s} / ‘ after’ {s} get_avatar <?php paginate_comments_links( $args ); ?>
Retrieve the avatar for a user who provided a user ID or email
address. $args / base | format | total | current | echo | add_fragment
comment_ID
comment_author_IP <?php echo get_avatar
Displays the numeric ID of a comment.
Displays the comment author's IP address. ( $id_or_email, $size, $default, $alt ); ?>
<?php comment_ID(); ?>
<?php comment_author_IP(); ?> $id_or_email {int/s/obj} / $size {int} / $default {s} / $alt
{s}
WORDPRESS VISUAL CHEAT SHEET ★ INCLUDE ★ BLOG INFO ★ LIST & DROPDOWN ★ LOGIN/LOGOUT ★ POST ★ COMMENT ★ CATEGORY ★ TAG ★ AUTHOR
★ DATE & TIME ★ EDIT LINK ★ TRACKBACK ★ PERMALINK ★ LINKS MANAGER ★ QUERY ★ TITLE
★ CATEGORY TAGS ★ TAG TAGS ★ AUTHOR TAGS ★ DATE AND TIME TAGS
<?php the_author_posts(); ?>
single_cat_title
the_date_xml
Displays or returns the category title for the current page. single_tag_title
Displays the date of the post in YYYY-MM-DD format (ex:
Displays or returns the tag title for the current page. 2004-09-24).
<?php single_cat_title( $prefix, $display );?> the_author_posts_link
<?php single_tag_title( $prefix, $display );> Displays a link to all posts by an author. <?php the_date_xml(); ?>
$prefix {s} / $display {s}
$prefix {s} / $display {s} <?php the_author_posts_link(); ?>
category_description the_modified_time
the_author_meta
Returns the description of a category. wp_tag_cloud This tag displays the time (and date) a post was last modified
The the_author_meta Template Tag displays the desired meta and is similar to the functionality of the_time(), which displays
Available with WordPress Version 2.3, this template tag
<?php echo category_description( $category );?> data for a user. the time (and date) a post was created.
wp_tag_cloud displays a list of tags in what is called a 'tag
cloud', where the size of each tag is determined by how many
$category {s} <?php the_author_meta( $field, $userID ); ?> <?php the_modified_time('d'); ?>
times that particular tag has been assigned to posts.
★ DATE & TIME ★ EDIT LINK ★ TRACKBACK ★ PERMALINK ★ LINKS MANAGER ★ QUERY ★ TITLE
permalink_anchor
edit_post_link Outputs a permalink anchor identifier or id (<a id="....) for a get_posts wp_title
Displays a link to edit the current post, if a user is logged in and post. This is useful for linking to a particular post on a page This is a simple tag for creating multiple loops. Displays or returns the title of the page.
allowed to edit the post. displaying several posts, such as an archive page.
<?php get_posts('arguments'); ?> <?php wp_title( $sep, $echo, $seplocation ); ?>
<?php edit_post_link <?php permalink_anchor('type'); ?>
( $link, $before, $after, $post ); ?> $numberposts {int} / $offset {int} / $category {int} / $sep {s} / $echo {s} / $seplocation {s}
‘type’ {s} $category_name {s} / $tag {s} /
$link {s} / $before {s} / $after {s} / $post {int}
get_permalink $orderby {s} (author | category | content | date | ID | single_post_title
menu_order | mime_type | modified | name | parent | password
Returns the permalink to a post for use in PHP. It does NOT | rand | status | title | type) Displays or returns the title of the post when on a single post
display the permalink and can be used outside of The Loop. page (permalink page).
edit_comment_link $order {s} / $include {s} / $exclude {s} / $meta_key {s} /
<?php $permalink = get_permalink(id); ?> $meta_value {s} <?php single_post_title( $prefix, $display );?>
Displays a link to edit the current comment, if the user is logged
in and allowed to edit the comment.
id {int} $post_type {s} (post | page | attachment | any ) $prefix {s} / $display {s}
<?php edit_comment_link
( $link, $before, $after ); ?> $post_status {s} (publish | private | draft | future | inherit |
the_permalink blank) single_cat_title
$link {s} / $before {s} / $after {s} Displays the URL for the permalink to the post currently being
processed in The Loop. $post_parent {int} / $nopaging {b} Displays or returns the category title for the current page.
<?php the_permalink(); ?> <?php single_cat_title( $prefix, $display );?>