
Posts request extended with meta-fields from ACF and Yoast WordPress SEO
This plugin adds a couple of extensions to the WordPress Rest API, which are aimed to make the use of WordPress as headless CMS easier.
It is originally coded for WUXT, a dockerized development environment for headless WordPress combined with NuxtJs. However, it can be used by every other application, which needs a powerful headless WordPress back-end.
meta object if the Yoast WordPress SEO plugin is activated.meta object if the plugin is activated.Frontpage
GET /wp-json/wuxt/v1/front-pageGET /wp-json/wuxt/v1/front-page?_embedMenu
GET /wp-json/wuxt/v1/menuGET /wp-json/wuxt/v1/menu?location=<location>Slug
GET /wp-json/wuxt/v1/slug/<post-or-page-slug>GET /wp-json/wuxt/v1/slug/<post-or-page-slug>?_embedTaxonomy filter AND extension
GET /wp-json/wp/v2/posts/?categories=1,2&and=trueGEO query
GET /wp-json/wp/v2/posts/?coordinates=<lat>,<lng>&distance=<distance><km|m>GET /wp-json/wp/v2/posts/?coordinates=<lat_meta_field>:<lat>,<lng_meta_field>:<lng>&distance=<distance><km|m>GET /wp-json/wp/v2/posts/?coordinates=52.585,13.373&distance=10GET /wp-json/wp/v2/posts/?coordinates=lat_mkey:52.585,lng_mkey:13.373&distance=10GET /wp-json/wp/v2/posts/?coordinates=52.585,13.373&distance=10m