Post Standard Fields Reference

Fields available to Posts, Pages and Custom Post Types (not including post_meta). Media Library is also a Custom Post Type

Overview

The standard post fields are the fields available within the wp_posts table. This table contains post, page, attachment (Media Library) and any Custom Post Types. We are only documenting how to get to the standard built-in fields. Custom Meta is accessed using using wp_get_postmeta.

List of All Standard Post Fields

  • ID – This is the ID of the post in a numerical format.
  • post_title – Also aliased with title
  • post_content
  • post_content_filtered
  • post_excerpt – This is the manually entered Excerpt when you have Excerpts enabled for your post type. This is not the same thing as the_excerpt, which is a filter used by WordPress to pull out either the contents of post_excerpt or the first # words in the post_content. See the WordPress Codex article for the_excerpt.
  • post_author – This is the ID of the Author of the Post. Not the short username, but the actual ID number that relates to the ID in the User Table.
  • post_date
  • post_date_gmt
  • comment_status
  • ping_status
  • post_password
  • post_name
  • to_ping
  • pinged
  • post_modified
  • post_modified_gmt
  • post_parent – If your post-type is Hierarchical, this is used to define the post that is the ‘parent‘ of the existing post. There isn’t a field to track ‘children‘ of this post. You’d have to query on posts where post_parent is equal to this post’s ID. or post_parent = {@ID}
  • guid
  • menu_order
  • post_type
  • post_mime_type
  • comment_count

Accessing using WP Methods

All of the above fields are accessible using WP Standard Methods. You can find most of these directly within the WP Codex, just search the field name. As an example, the_title outputs post_title when you are in The Loop; get_the_title returns the post_title based on passed Post ID.

Accessing using Magic Tags (Pods Templates)

You can access any of these by wrapping the field name above with {@...} (replacing the ellipsis with the Field Name).  So if you want to output the post_title within a Pods Template, you’d use {@post_title}.

Other Helpful Documentation on Displaying Pods

Access Rights in Pods

An overview of how Access Rights works in Pods

Displaying Custom Taxonomy Term Meta

To display the custom fields you’ve extended to your Custom Taxonomy, you’ll need to use the function get_term_meta. /* $term_id is the Taxonomy Term 'field_name' is the Custom Taxonomy term */ $field_value = get_term_meta( $term_id, 'field_name', true );` If you’re on a Taxonomy Archive page, you can use $pods = pods(); and Pods will automatically …

Read more

Displaying Pagination

Pagination of a list items is supported by Pods Blocks, Shortcodes, and Widgets.

Displaying Pods Custom Settings Pages

ContentsOverviewUsing Pods TemplatesUsing WordPress FunctionsDisplay Pods Settings Pages using Pods Functions Overview You can access Custom Settings Pages for display in your theme using Pods Templates, WordPress functions or with our Pods Functions Calls. Using Pods Templates When you’re using a Pods Template, you’ll reference your fields in your Settings page with the standard magic …

Read more

Image & Media Fields Reference

Shows fields that differ in reference to Image & File Fields

Magic Tags

Show your content and custom fields inside our Pods Templates, like Magic!

Pod Page Template Hierarchy for Themes

Pods supports loading template files directly from the theme for a Pod Page. This requires using the Pod Pages component. ContentsPod Page Templates HierarchyCode referenceExample page URL path: “my/pod-page/*” (Page must be created first)Diagram Pod Page Templates Hierarchy Pod Page Templates can be automatically loaded from the theme when the Page Template dropdown is left …

Read more

Pod Template Hierarchy for Themes

Pods supports loading template files directly from the theme. There are two kinds of templates in Pods: ContentsPod Templates HierarchyExample template: “book-list” (Template must be created first)Plain Templates (Templates component inactive)Diagram Pod Templates Hierarchy Pod Templates can be automatically loaded from the theme when the template code is left empty AND the template name must …

Read more

Pods Blocks

Pods Blocks are available in the Block Editor. They are also available in the Widget Editor (WP 5.8+)

Pods Shortcode

Using our Shortcode to get content on your website is often the easiest method since you can drop these into a page, HTML block or HTML Widget.

Pods Templates

Create re-usable templates of content that you can put anywhere on your website using Pods Blocks, Pods Shortcodes, Pods Widgets, or automatically inserted in your Single & Archive Post Templates using Auto Templates.

Pods Widgets

Pods Widgets allow you to display fields, a single item, a list of items, and embed a form or template view. Pods Blocks are now recommended instead of using our Widgets.

Taxonomy Fields Reference

Used for Category, Tags and Custom Taxonomy

Template Tags

Special handling for conditional output or looping through relationships, taxonomy or attached media.

User Fields Reference

User Fields available to Magic Tags when Extended and How to get to and access user_meta with PHP Methods.