Title: Get custom post gives empty array ?!
Last modified: April 5, 2017

---

# Get custom post gives empty array ?!

 *  Resolved [snoopje](https://wordpress.org/support/users/snoopje/)
 * (@snoopje)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/)
 * I implemented the WP REST API Controller and I see and can configure a bunch 
   of custom posts and get reliable results.
    BUT one of it delivers just an empty
   JSON array [] even if there are custom posts containing content?!
 * TIA for any hint

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/#post-8996947)
 * Hi [@snoopje](https://wordpress.org/support/users/snoopje/),
 * Can you give me some more information about the custom post type? Is it coming
   from a plugin or something you’ve created yourself? What URL are you hitting 
   to see the data? Is there anything you know of that’s different about this custom
   post type compared to the other ones you can successfully access? Is it possible
   for me to load up this CPT and test it out locally?
 * Let me know,
    Kevin.
 *  Thread Starter [snoopje](https://wordpress.org/support/users/snoopje/)
 * (@snoopje)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/#post-9000249)
 * Hi Kevin,
    THX for taking my request. It’s from a 3rd party [Plugin from motocross](http://www.getmotopress.com/plugins/hotel-booking/).
   The URL is [http://preview.adelfors.com/wp-json/wp/v2/booking](http://preview.adelfors.com/wp-json/wp/v2/booking).
   There are some more CPT’s from motocross which are working without problems.
 * I don’t know how to upload the CPT , but to make things easy I’ll trust you and
   can and send you the URL + credentials via PM, e.g. [info@yikesinc.com](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/info@yikesinc.com?output_format=md),
   if you want me to do so ?
 * TIA
    $regs ray
 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/#post-9001153)
 * Hi [@snoopje](https://wordpress.org/support/users/snoopje/),
 * I’ll download the plugin and test it out locally first. If I can’t reproduce 
   your issue, we can discuss further steps via email.
 * Whoops – I didn’t realize it was a paid plugin. Please email me at [kevin@yikesinc.com](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/kevin@yikesinc.com?output_format=md).
 * Cheers,
    Kevin.
    -  This reply was modified 9 years, 1 month ago by [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get custom post gives empty array ?!’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-api-controller/assets/icon-256x256.png?rev=2489942)
 * [WP REST API Controller](https://wordpress.org/plugins/wp-rest-api-controller/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-api-controller/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-api-controller/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-api-controller/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-api-controller/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-api-controller/reviews/)

## Tags

 * [empty result](https://wordpress.org/support/topic-tag/empty-result/)

 * 3 replies
 * 2 participants
 * Last reply from: [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/get-custom-post-gives-empty-array/#post-9001153)
 * Status: resolved