0

Is there any way to change a site's homepage (Settings -> Reading), via API? We're running a React app with a Headless WP 'backend', and I'd like to let users change the homepage of their sites though our app.

I searched but couldn't find a solution to this.

Thanks

0

It appears you can change some settings via the REST API, but it doesn't look like the Home Page is one of them. At least, it doesn't seem to appear in the REST API > Site Settings documentation.

0

Well you can't really change the whole homepage using API. Instead you could fetch different parts like Posts, Categories and display them using the API.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.