Hi so I'm developing an integration with a customer's Wordpress site so that we can index the site and search across its content for them.
However I'm facing some issues while doing this :
- I am able to hit the posts endpoint of the customer using https://site_name/wp-json/wp/v2/posts (this endpoint is actually publicly visible). When I attempt to hit this endpoint with a username and application password I get an output with the following structure
[
{
"id": 1234,
"date": "2024-08-15T14:28:07",
"date_gmt": "2024-08-15T12:28:07",
"guid": {
"rendered": "some_guid_link"
},
"modified": "2024-08-15T14:45:45",
"modified_gmt": "2024-08-15T12:45:45",
"slug": "some_slug",
"status": "publish",
"type": "post",
"link": "post_url",
"title": {
"rendered": "Title rendered correctly"
},
"content": {
"rendered": "",
"protected": false
}
If you see above the content rendered is an empty string while all other fields are rendered correctly. For some additional context
- The user has a Subscriber role in the Wordpress admin dashboard
- The customer has the following plugins installed
Advanced Custom Fields PRO
Broken Link Checker
Classic Editor
Easy FancyBox - WordPress Lightbox Plugin
Force Login
GA Google Analytics
Public Post Preview
Redirection
Restrict Content by Role
Single Sign-on with Azure Active Directory
User Role Editor
WP Control
Yoast Duplicate Post