Extend and customise the WordPress REST API to your needs.
If you’re using Advanced Custom Field’s powerful Flexible Layout fields to create modular WordPress templates then you may find you need to include this content in the REST API output.
Amend the default posts endpoint of the WordPress API to allow a tax_query which will return posts tagged with a given term.
If you’re experiencing errors when attempting to access WordPress REST API endpoints between domains due to CORS policies, this code snippet will help.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.