admin管理员组文章数量:1321611
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
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
Share Improve this question asked Sep 22, 2020 at 20:21 Ilya GurmanIlya Gurman 12 Answers
Reset to default 0It 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.
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.
本文标签: pluginsAbility to change homepage on Wordpress using API
版权声明:本文标题:plugins - Ability to change homepage on Wordpress using API 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742104479a2420957.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论