REST API

Extend and customise the WordPress REST API to your needs.


Include Advanced Custom Fields Flexible Layout content in the REST API

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.

WordPress Rest API: filter Posts using a tax_query

Amend the default posts endpoint of the WordPress API to allow a tax_query which will return posts tagged with a given term.

WordPress REST API: ‘Access-Control-Allow-Origin’ header contains multiple values

If you’re experiencing errors when attempting to access WordPress REST API endpoints between domains due to CORS policies, this code snippet will help.