{"id":54907,"date":"2017-02-27T13:25:55","date_gmt":"2017-02-27T13:25:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-api-multiple-posttype\/"},"modified":"2018-07-12T14:37:20","modified_gmt":"2018-07-12T14:37:20","slug":"wp-api-multiple-posttype","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/wp-api-multiple-posttype\/","author":14590035,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"trunk","tested":"4.9.29","requires":"4.8","requires_php":"5.2.4","requires_plugins":"","header_name":"WP Rest Api V2 Multiple PostTypes","header_author":"ElevatiInfotech","header_description":"","assets_banners_color":"","last_updated":"2018-07-12 14:37:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/elevati\/wp-api-multiple-posttype","header_author_uri":"https:\/\/github.com\/elevati","rating":0,"author_block_rating":0,"active_installs":100,"downloads":3360,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2","1.0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,1118,149926,18680,158814],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-54907","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-json","plugin_tags-posttypes","plugin_tags-restapi","plugin_tags-v2","plugin_committers-salilkothadia"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-api-multiple-posttype.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h3>Multiple Content type Query API for Wordpress Rest Api V2<\/h3>\n\n<p>Extension of wp\/v2\/posts api to allow query multiple post types<\/p>\n\n<h3>About<\/h3>\n\n<p>Want to get your site's posts, pages, articles, events?<\/p>\n\n<p>Use the Endpoint: '\/wp-json\/wp\/v2\/multiple-post-type'<\/p>\n\n<p>List:<\/p>\n\n<pre><code>GET request to `\/wp-json\/wp\/v2\/multiple-post-type?&amp;type[]=post&amp;type[]=page`\n<\/code><\/pre>\n\n<p>Get the page with slug \"about-me\":<\/p>\n\n<pre><code>GET \/wp-json\/wp\/v2\/multiple-post-type?slug=about-me&amp;type[]=post&amp;type[]=page\n<\/code><\/pre>\n\n<p>Search term \"awesome\":<\/p>\n\n<pre><code>GET \/wp-json\/wp\/v2\/multiple-post-type?search=awesome&amp;type[]=post&amp;type[]=page&amp;type[]=articles&lt;h3&gt;Credits&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>Build using the code shared by Ruben Vreeken, (https:\/\/github.com\/Rayraz)\non stackoverflow (http:\/\/stackoverflow.com\/questions\/38059805\/query-multiple-post-types-using-wp-rest-api-v2-wordpress)<\/p>\n\n<h3>License<\/h3>\n\n<p><a href=\"http:\/\/www.gnu.org\/licenses\/gpl-3.0.html\">GPLv3<\/a><\/p>","raw_excerpt":"Multiple Content type Query API for Wordpress Rest Api V2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/54907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=54907"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/salilkothadia"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=54907"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=54907"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=54907"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=54907"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=54907"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=54907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}