Home Plugins rest api multiple post types
REST API Multiple Post Types logo

REST API Multiple Post Types

by Josh Pollock on WordPress.org

Query multiple post types using /wp/v2/posts

(0)

Any post type that works with the WordPress REST API (show_in_rest must be true when declaring post type) will be queryable with /wp/v2/posts

Example Queries

  • GET wp/v2/posts?type=roy
  • GET wp/v2/posts?type[]=roy&type[]=mike

    A free plugin by Caldera Labs the makers of Caldera Forms a drag and drop responsive form builder.

Active installations70+
Weekly downloads
15-58.33%
Version0.1.0
Last updated8/22/2017
WordPress version4.7
Tested up to4.8.25
Tags
calderahi royrest-apiwp-api