wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/post-template.php › WordPress File
Functions37
› WordPress Post Template Functions.
| Function | Short description |
|---|---|
| body_class | Displays the class names for the body element. |
| get_body_class | Retrieves an array of the class names for the body element. |
| get_page_template_slug | Gets the specific template filename for a given post. |
| get_post_class | Retrieves an array of the class names for the post container element. |
| get_post_parent | Retrieves the parent post object for the given post. |
| get_the_content | Retrieves the post content. |
| get_the_excerpt | Retrieves the post excerpt. |
| get_the_guid | Retrieves the Post Global Unique Identifier (guid). |
| get_the_id | Retrieves the ID of the current item in the WordPress Loop. |
| get_the_password_form | Retrieves protected post password form content. |
| get_the_title | Retrieves the post title. |
| has_excerpt | Determines whether the post has a custom excerpt. |
| has_post_parent | Returns whether the given post has a parent post. |
| is_page_template | Determines whether the current post uses a page template. |
| post_class | Displays the classes for the post container element. |
| post_custom | Retrieves post custom meta data field. |
| post_password_required | Determines whether the post requires password and whether a correct password has been provided. |
| prepend_attachment | Wraps attachment in paragraph tag before content. |
| the_attachment_link | Displays an attachment page link using an image or icon. |
| the_content | Displays the post content. |
| the_excerpt | Displays the post excerpt. |
| the_guid | Displays the Post Global Unique Identifier (guid). |
| the_id | Displays the ID of the current item in the WordPress Loop. |
| the_meta | Displays a list of post custom fields. |
| the_title | Displays or retrieves the current post title with optional markup. |
| the_title_attribute | Sanitizes the current title when retrieving or displaying. |
| walk_page_dropdown_tree | Retrieves HTML dropdown (select) content for page list. |
| walk_page_tree | Retrieves HTML list content for page list. |
| wp_dropdown_pages | Retrieves or displays a list of pages as a dropdown (select list). |
| wp_get_attachment_link | Retrieves an attachment page link using an image or icon, if possible. |
| wp_link_pages | The formatted output of a list of pages. |
| wp_list_pages | Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format. |
| wp_list_post_revisions | Displays a list of a post's revisions. |
| wp_page_menu | Displays or retrieves a list of pages with an optional home link. |
| wp_post_revision_title | Retrieves formatted date timestamp of a revision (linked to that revisions's page). |
| wp_post_revision_title_expanded | Retrieves formatted date timestamp of a revision (linked to that revisions's page). |
| _wp_link_page | Helper function for wp_link_pages(). |