A WordPress-centric search engine for devs and theme authors



wp-includes/post-template.php ›

Functions36
WordPress Post Template Functions.


Function Short description
body_classDisplay the classes for the body element.
get_body_classRetrieve the classes for the body element as an array.
get_page_template_slugGet the specific template name for a given post.
get_post_classRetrieves the classes for the post div as an array.
get_the_contentRetrieve the post content.
get_the_excerptRetrieves the post excerpt.
get_the_guidRetrieve the Post Global Unique Identifier (guid).
get_the_idRetrieve the ID of the current item in the WordPress Loop.
get_the_password_formRetrieve protected post password form content.
get_the_titleRetrieve post title.
has_excerptWhether the post has a custom excerpt.
is_page_templateWhether currently in a page template.
post_classDisplay the classes for the post div.
post_customRetrieve post custom meta data field.
post_password_requiredWhether post requires password and correct password has been provided.
prepend_attachmentWrap attachment in paragraph tag before content.
the_attachment_linkDisplay an attachment page link using an image or icon.
the_contentDisplay the post content.
the_excerptDisplay the post excerpt.
the_guidDisplay the Post Global Unique Identifier (guid).
the_idDisplay the ID of the current item in the WordPress Loop.
the_metaDisplay list of post custom fields.
the_titleDisplay or retrieve the current post title with optional markup.
the_title_attributeSanitize the current title when retrieving or displaying.
walk_page_dropdown_treeRetrieve HTML dropdown (select) content for page list.
walk_page_treeRetrieve HTML list content for page list.
wp_dropdown_pagesRetrieve or display list of pages as a dropdown (select list).
wp_get_attachment_linkRetrieve an attachment page link using an image or icon, if possible.
wp_link_pagesThe formatted output of a list of pages.
wp_list_pagesRetrieve or display list of pages (or hierarchical post type items) in list (li) format.
wp_list_post_revisionsDisplay list of a post's revisions.
wp_page_menuDisplays or retrieves a list of pages with an optional home link.
wp_post_revision_titleRetrieve formatted date timestamp of a revision (linked to that revisions's page).
wp_post_revision_title_expandedRetrieve formatted date timestamp of a revision (linked to that revisions's page).
_convert_urlencoded_to_entitiesPreview fix for JavaScript bug with foreign languages.
_wp_link_pageHelper function for wp_link_pages().