Skip to content
Essentials for YOOtheme Pro

WordPress API Source Provider

The WordPress API Source feeds data from WordPress sites using the WordPress REST API, supporting Post, Posts, Page, Pages, Category, and Categories queries.

Settings

Source Instance Common Settings

SettingDescriptionDefault
NameThe name that will identify this source instance.
Default Cache TimeThe default duration in seconds before the cache is renewed, set to 0 to disable caching. This setting can be overriden in each query configuration.3600
SettingDescription
URLThe base URL of the WordPress site to retrieve the data from, e.g. https://mysite.com.
AuthenticationOptional API Token or Application Password for authenticated requests. For security, create a dedicated user with minimal permissions.

Post Query

Fetches a single post from the WordPress site and resolves to Post Type.

SettingDescriptionDefaultDynamic
Post IDThe ID of the post to query.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Posts Query

Fetches posts from the WordPress site and resolves to a list of Post Type.

SettingDescriptionDefaultDynamic
Filter by StatusFilter by post status: Publish, Future, Draft, Pending, Private, or Any.publish
StickyFilter posts marked as sticky.
Filter by SlugFilter posts by slug. Enter one or multiple values separated by commas.
Filter by IDInclude specific post IDs, comma-separated.
ExcludeExclude specific post IDs, comma-separated.
Filter by AuthorInclude specific author IDs, comma-separated.
Exclude AuthorExclude specific author IDs, comma-separated.
Filter by CategoriesInclude specific category IDs, comma-separated.
Exclude CategoriesExclude specific category IDs, comma-separated.
Filter by TagsInclude specific tag IDs, comma-separated.
Exclude TagsExclude specific tag IDs, comma-separated.
Filter by TermSearch term matching title, excerpt, and content.
ColumnsCustom columns to search within, comma-separated.
Published AfterFilter posts published after this date (ISO8601 format).
BeforeFilter posts published before this date (ISO8601 format).
Modified AfterFilter posts modified after this date (ISO8601 format).
Modified BeforeFilter posts modified before this date (ISO8601 format).
StartThe offset applied to the query.0
QuantityThe number of posts per page.20
PageThe page number to display.1
Order BySort posts by date, relevance, id, include, title, or slug.date
OrderSort order: asc or desc.desc
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Page Query

Fetches a single page from the WordPress site and resolves to Page Type.

SettingDescriptionDefaultDynamic
Page IDThe ID of the page to query.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Pages Query

Fetches pages from the WordPress site and resolves to a list of Page Type.

SettingDescriptionDefaultDynamic
Filter by StatusFilter by page status: Publish, Future, Draft, Pending, Private, or Any.publish
Filter by SlugFilter pages by slug. Enter one or multiple values separated by commas.
Menu OrderFilter pages by menu_order value.
Filter by IDInclude specific page IDs, comma-separated.
ExcludeExclude specific page IDs, comma-separated.
Filter by ParentInclude specific parent page IDs, comma-separated.
Exclude ParentExclude specific parent page IDs, comma-separated.
Filter by AuthorInclude specific author IDs, comma-separated.
Exclude AuthorExclude specific author IDs, comma-separated.
Filter by TermSearch term matching title, excerpt, and content.
ColumnsCustom columns to search within, comma-separated.
Published AfterFilter pages published after this date (ISO8601 format).
BeforeFilter pages published before this date (ISO8601 format).
Modified AfterFilter pages modified after this date (ISO8601 format).
Modified BeforeFilter pages modified before this date (ISO8601 format).
StartThe offset applied to the query.0
QuantityThe number of pages per page.20
PageThe page number to display.1
Order BySort pages by date, relevance, id, include, title, slug, or menu_order.date
OrderSort order: asc or desc.desc
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Category Query

Fetches a single category from the WordPress site and resolves to Category Type.

SettingDescriptionDefaultDynamic
Category IDThe ID of the category to query.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Categories Query

Fetches categories from the WordPress site and resolves to a list of Category Type.

SettingDescriptionDefaultDynamic
ParentOptional parent category ID to filter categories.
Hide EmptyWhether to hide categories with no posts.false
StartThe offset applied to the query.0
LimitThe limit applied to the query.10
Order BySort categories by name, slug, count, or id.name
OrderSort order: asc or desc.asc
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Post Type

Defines the mapping options of a WordPress Post object.

FieldDescriptionTypeFilters
IDThe unique identifier of the post.String
TitleThe title of the post.StringLimit
SlugThe URL-friendly slug of the post.String
TypeThe type of the post.String
URLThe URL to the post.String
StatusThe status of the post (publish, future, draft, pending, private).String
Comment StatusWhether comments are allowed (open or closed).String
Ping StatusWhether pings are allowed (open or closed).String
StickyWhether the post is sticky.Boolean
FormatThe post format (standard, aside, gallery, link, image, quote, status, video, audio, chat).String
ExcerptThe excerpt of the post.StringLimit
ContentThe full content of the post.StringLimit
PublishedThe publication date of the post.StringDate
Published (GMT)The publication date of the post in GMT.StringDate
ModifiedThe last modification date of the post.StringDate
Modified (GMT)The last modification date of the post in GMT.StringDate
Featured MediaThe featured media object.Media Type
AuthorThe author of the post.User Type
TagsThe tags assigned to the post.List of Tag Type
CategoriesThe categories assigned to the post.List of Category Type
FieldAccess to custom fields.PostFields

Page Type

Defines the mapping options of a WordPress Page object.

FieldDescriptionTypeFilters
IDThe unique identifier of the page.String
TitleThe title of the page.StringLimit
SlugThe URL-friendly slug of the page.String
TypeThe type of the page.String
URLThe URL to the page.String
StatusThe status of the page (publish, future, draft, pending, private).String
Comment StatusWhether comments are allowed (open or closed).String
Ping StatusWhether pings are allowed (open or closed).String
ExcerptThe excerpt of the page.StringLimit
ContentThe full content of the page.StringLimit
Menu OrderThe order of the page in menus.Int
PublishedThe publication date of the page.StringDate
Published (GMT)The publication date of the page in GMT.StringDate
ModifiedThe last modification date of the page.StringDate
Modified (GMT)The last modification date of the page in GMT.StringDate
Featured MediaThe featured media object.Media Type
AuthorThe author of the page.User Type
ParentThe parent page.Page Type
FieldAccess to custom fields.PageFields

Category Type

Defines the mapping options of a WordPress Category object.

FieldDescriptionTypeFilters
IDThe unique identifier of the category.String
NameThe name of the category.String
SlugThe URL-friendly slug of the category.String
DescriptionThe description of the category.String
LinkThe URL to the category archive.String
CountThe number of posts in the category.Int
TaxonomyThe taxonomy type (category).String
ParentThe parent category.Category Type

Tag Type

Defines the mapping options of a WordPress Tag object.

FieldDescriptionTypeFilters
IDThe unique identifier of the tag.String
NameThe name of the tag.String
SlugThe URL-friendly slug of the tag.String
DescriptionThe description of the tag.StringLimit
URLThe URL to the tag archive.String
CountThe number of posts with this tag.Int
TaxonomyThe taxonomy type (post_tag).String

Media Type

Defines the mapping options of a WordPress Media object.

FieldDescriptionTypeFilters
IDThe unique identifier of the media.String
TitleThe title of the media.StringLimit
SlugThe URL-friendly slug of the media.String
TypeThe type of the media.String
URLThe URL to the media attachment page.String
Source URLThe direct URL to the media file.String
StatusThe status of the media.String
Alt TextThe alternative text for the media.String
Media TypeThe media type (image, file, video, audio).String
MIME TypeThe MIME type of the media file.String
Comment StatusWhether comments are allowed (open or closed).String
Ping StatusWhether pings are allowed (open or closed).String
PublishedThe publication date of the media.StringDate
Published (GMT)The publication date of the media in GMT.StringDate
ModifiedThe last modification date of the media.StringDate
Modified (GMT)The last modification date of the media in GMT.StringDate
AuthorThe author of the media.User Type

User Type

Defines the mapping options of a WordPress User object.

FieldDescriptionTypeFilters
IDThe unique identifier of the user.String
SlugThe URL-friendly slug of the user.String
NameThe display name of the user.String
NicknameThe nickname of the user.String
First NameThe first name of the user.String
Last NameThe last name of the user.String
IPThe IP address of the user.String
EmailThe email address of the user.String
DescriptionThe description of the user.StringLimit
Login NameThe username used for login.String
Login PasswordThe password field (write-only).String
URLThe website URL of the user.String
URL as AuthorThe URL to the user's author archive.String
LocaleThe locale setting of the user.String
Registered DateThe date the user registered.StringDate
RolesThe roles assigned to the user.String
CapabilitiesThe capabilities of the user.String
Extra CapabilitiesAdditional capabilities.String
Avatar URLsThe avatar URLs at various sizes.String