WordPress | Yext Hitchhikers Platform
Overview
Use the WordPress source to pull in your Posts, Pages, Media, and Custom Content Types.
This source uses the WordPress API to:
Authentication
Most WordPress sites have public API endpoints that can be accessed without authentication; however, the WordPress source supports private sites through additional operations.
Installation instructions will ask users to create a new application password on their WordPress site. These credentials (WordPress username and application password) will be used to authenticate any private operation. See WordPress documentation for steps to create an application password.
Pagination
WordPress utilizes page-based pagination.
| Page Key | page |
| Page Start Value | 1 |
| Limit Key | X-WP=Total |
| Limit Value | n/a |
| Total Pages Key | X-WP-TotalPages |
| Total Pages Key In | Header |
| Max Page Count | n/a |
Fetch Posts
Use this operation to fetch Posts from your WordPress site.
Requirements
Users must enter a full WordPress URL (e.g., https://www.yoursite.com) and select Posts from the Content Type dropdown. A WordPress username and application password are required in order to authenticate the Private API operation.
Fields
idtitle.renderedcontent.renderedstickydatemodified_embedded.author[].name_embedded.author[].link_embedded.author[].descriptionexcerpt.renderedlink_embedded."wp:featuredmedia"[].linktags_embedded."wp:term"[].name
Fetch Pages
Use this operation to fetch Pages from your WordPress site.
Requirements
Users must enter a full WordPress URL (e.g., https://www.yoursite.com) and select Pages from the Content Type dropdown. A WordPress username and application password are required in order to authenticate the Private API operation.
Fields
idtitle.rendereddatemodified_embedded.author[].name_embedded.author[].link_embedded.author[].descriptionlink
Fetch Media
Use this operation to fetch Media from your WordPress site.
Requirements
Users must enter a full WordPress URL (e.g., https://www.yoursite.com) and select Media from the Content Type dropdown. A WordPress username and application password are required in order to authenticate the Private API operation.
Fields
idtitle.rendereddatemodifiedcaption.renderedalt_textmedia_typemedia_details.widthmedia_details.heightsource_url_embedded.author[].name_embedded.author[].link_embedded.author[].description
Fetch Custom Content
Use this operation to fetch Media from your WordPress site.
Requirements
Users must enter a full WordPress URL (e.g., https://www.yoursite.com) and input a WordPress content type (e.g, categories, users, etc.). A WordPress username and application password are required in order to authenticate the Private API operation.