Post
ObjectA chronological content entry typically used for blog posts, news articles, or similar date-based content.
Fields
The ancestors of the content node.
Connection between the Post type and the category type
The number of comments. Even though WPGraphQL denotes this field as an integer, in WordPress this field should be saved as a numeric string for compatibility.
Whether the comments are open or closed for this particular post.
The content of the post.
CSS classes WordPress applies to the post-content wrapper based on the template layout attribute and theme.json settings.
Connection between the ContentNode type and the ContentType type
The name of the Content Type the node belongs to
The unique identifier stored in the database
Post publishing date.
The publishing date set in GMT.
The desired slug of the post
If a user has edited the node within the past 15 seconds, this will return the user that last edited. Null if the edit lock doesn't exist or is greater than 15 seconds
List of Post editor blocks
The RSS enclosure for the object
Connection between the ContentNode type and the EnqueuedScript type
Connection between the ContentNode type and the EnqueuedStylesheet type
The excerpt of the post.
Connection between the NodeWithFeaturedImage type and the MediaItem type
The database identifier for the featured image node assigned to the content node
Globally unique ID of the featured image assigned to the node
The global unique identifier for this post. This currently matches the value stored in WP_Post->guid and the guid column in the "post_objects" database table.
Whether the post object is password protected.
The globally unique identifier of the post object.
Whether the node is a Comment
Whether the node is a Content Node
Whether the node represents the front page.
Whether the node represents the blog page.
Whether the object is a node in the preview state
Whether the object is restricted from the current viewer
True if the node is a revision of another node
Whether this page is sticky
Whether the node is a Term
Polylang language
The user that most recently edited the node
The permalink of the post
The local modified time for a post. If a post was recently updated the modified field will change to match the corresponding time.
The GMT modified time for a post. If a post was recently updated the modified field will change to match the corresponding time in GMT.
The parent of the content node.
The password for the post object.
Whether the pings are open or closed for this particular post.
URLs that have been pinged.
Connection between the Post type and the postFormat type
The id field matches the WP_Post->ID field.
Connection between the post type and the post type
The database id of the preview node
Whether the object is a node in the preview state
If the current node is a revision, this field exposes the node this is a revision of. Returns null if the node is not a revision of another node.
Connection between the Post type and the post type
The Yoast SEO data of the ContentNode
The uri slug for the post. This is equivalent to the WP_Post->post_name field and the post_name column in the database for the "post_objects" table.
The current status of the object
The template assigned to the node
Connection between the Post type and the TermNode type
The title of the post. This is currently just the raw title. An amendment to support rendered title needs to be made.
URLs queued to be pinged.
Get specific translation version of this object
List all translated versions of this post
The unique resource identifier path
Connection between the Post type and the Comment type