Посты

Схема

Схема определяет все поля которые существуют в объекте с постами.

date

string,
datetime ([details](https://core.trac.wordpress.org/ticket/41032))
The date the object was published, in the site's timezone.

Context: view, edit, embed

date_gmt

string,
datetime ([details](https://core.trac.wordpress.org/ticket/41032))
The date the object was published, as GMT.

Context: view, edit

guid

object
The globally unique identifier for the object.

Read only

Context: view, edit

id

integer
Unique identifier for the object.

Read only

Context: view, edit, embed

modified

string,
datetime ([details](https://core.trac.wordpress.org/ticket/41032))
The date the object was last modified, in the site's timezone.

Read only

Context: view, edit

modified_gmt

string,
datetime ([details](https://core.trac.wordpress.org/ticket/41032))
The date the object was last modified, as GMT.

Read only

Context: view, edit

slug

string
An alphanumeric identifier for the object unique to its type.

Context: view, edit, embed

status

string
A named status for the object.

Context: view, edit

One of: publish, future, draft, pending, private

type

string
Type of Post for the object.

Read only

Context: view, edit, embed

password

string
A password to protect access to the content and excerpt.

Context: edit

generated_slug

string
Slug automatically generated from the object title.

Read only

Context: edit

title

object
The title for the object.

Context: view, edit, embed

content

object
The content for the object.

Context: view, edit

author

integer
The ID for the author of the object.

Context: view, edit, embed

excerpt

object
The excerpt for the object.

Context: view, edit, embed

comment_status

string
Whether or not comments are open on the object.

Context: view, edit

One of: open, closed

ping_status

string
Whether or not the object can be pinged.

Context: view, edit

One of: open, closed

format

string
The format for the object.

Context: view, edit

One of: standard, aside, chat, gallery, link, image, quote, status, video, audio

meta

object
Meta fields.

Context: view, edit

sticky

boolean
Whether or not the object should be treated as sticky.

Context: view, edit

template

string
The theme file to use to display the object.

Context: view, edit

categories

array
The terms assigned to the object in the category taxonomy.

Context: view, edit

tags

array
The terms assigned to the object in the post_tag taxonomy.

Context: view, edit