This site is automated with plugin and protected with WP Cerber security plugin

Newsletter Subscription

If you want to subscribe to our monthly newsletter, please submit the form below.


Global {$post} variable > Documentation  > Variables and patterns  > Global {$post} variable

Global {$post} variable

Available in context of currently displaying or editing page or post any type. Contain fields for that post or page.

To get a value, for instance post title, use this pattern: {$post[post_title]}

{$post[ID]} The ID of the post
{$post[post_author]} The post author’s user ID (numeric string)
post_name string The post’s slug
post_type string See Post Types
post_title string The title of the post
post_date string Format: 0000-00-00 00:00:00
post_date_gmt string Format: 0000-00-00 00:00:00
post_content string The full content of the post
post_excerpt string User-defined post excerpt
post_status string See get_post_status for values
comment_status string Returns: { open, closed }
ping_status string Returns: { open, closed }
post_password string Returns empty string if no password
post_parent int Parent Post ID (default 0)
post_modified string Format: 0000-00-00 00:00:00
post_modified_gmt string Format: 0000-00-00 00:00:00
comment_count string Number of comments on post (numeric string)
menu_order string Order value as set through page-attribute when enabled (numeric string. Defaults to 0)

No Comments

Sorry, the comment form is closed at this time.