Saltar al contenido principal

Interface: WpPost

Defined in: src/types/index.ts:1231

A WordPress post.

Extends

Properties

_embedded?

optional _embedded?: WpEmbedded

Defined in: src/types/index.ts:1248

Embedded resources (author, featured media, terms). Available when using _embed.


acf?

optional acf?: WpAcfFields

Defined in: src/types/index.ts:1246

ACF (Advanced Custom Fields) data. Available when using ACF plugin.


author

author: number

Defined in: src/types/index.ts:1235


categories

categories: number[]

Defined in: src/types/index.ts:1242


comment_status

comment_status: string

Defined in: src/types/index.ts:1237


content

content: object

Defined in: src/types/index.ts:1233

protected

protected: boolean

rendered

rendered: string


date

date: string

Defined in: src/types/index.ts:1221

Inherited from

WpBaseEntity.date


date_gmt

date_gmt: string

Defined in: src/types/index.ts:1222

Inherited from

WpBaseEntity.date_gmt


excerpt

excerpt: object

Defined in: src/types/index.ts:1234

protected

protected: boolean

rendered

rendered: string


featured_media: number

Defined in: src/types/index.ts:1236


format

format: string

Defined in: src/types/index.ts:1241


id

id: number

Defined in: src/types/index.ts:1220

Inherited from

WpBaseEntity.id


link: string

Defined in: src/types/index.ts:1227

Inherited from

WpBaseEntity.link


meta

meta: Record<string, unknown>

Defined in: src/types/index.ts:1244


modified

modified: string

Defined in: src/types/index.ts:1223

Inherited from

WpBaseEntity.modified


modified_gmt

modified_gmt: string

Defined in: src/types/index.ts:1224

Inherited from

WpBaseEntity.modified_gmt


ping_status

ping_status: string

Defined in: src/types/index.ts:1238


slug

slug: string

Defined in: src/types/index.ts:1225

Inherited from

WpBaseEntity.slug


status

status: string

Defined in: src/types/index.ts:1226

Inherited from

WpBaseEntity.status


sticky

sticky: boolean

Defined in: src/types/index.ts:1239


tags

tags: number[]

Defined in: src/types/index.ts:1243


template

template: string

Defined in: src/types/index.ts:1240


title

title: object

Defined in: src/types/index.ts:1232

rendered

rendered: string