So I tried everything and every plugin to fix my issue and expose the list CPT data instead of showing brackets [ ].
And the answer is something that might be a bug in WordPress Rest API.
The problem was I am using custom statuses and none of my posts were assigned as default WordPress status. After changing the posts to any of the default built-in statuses, it worked. But doesn’t work for custom statuses it seems…. at least not with custom statuses created with a plugin called PublishPress.. Perhaps it just doesn’t work with custom statuses at all, all-around
Hope this can help someone else!
Related Posts:
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Custom post types filtered by taxonomy using REST API v2
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- Update CPT meta data using REST API
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- WordPress REST Create Post of Custom Type
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- Show custom post type endpoint in REST API just if user has capability
- WP Rest API Querying Custom Posts by ACF fields
- How to force Authentication on REST API for Password protected page using custom table and fetch() without Plugin
- How to get dynamically custom post type that are under a certain category
- Get the Category Name instead of ID from WP-API
- Rest Api v2 orderby meta_key in custom post type
- Get custom post type REST API not working
- How to add custom fields to admin UI and REST API response?
- WordPress Rest API only returns content when posttype has editor capability
- Custom search with Custom Fields in WP REST API?
- Wp Rest API request posts from a custom taxonomy
- Recommended way to remove WP REST API returned data for custom post
- Custom Post Type and API REST is not working
- Add custom post type to Backbone collections
- React post to WordPress custom post type
- Custom Post type with ACF in REST API, how do I get those values?
- is_main_query() not working for WP REST API
- Very simple wordpress block to display posts from an api call
- Add custom parameter to REST API request of a custom post type?
- Custom Taxonomy Invalid in REST API
- How do I get the intended post type of a revision post?
- Using The REST API How To Pull All Custom Posts?
- Cannot add custom field to “orderby” parameter in Rest API
- Getting meta in editor plugin, and event triggering issue
- Expose a custom field of a custom post type to the REST API
- How to create custom post by using REST API securely?
- Custom post type archive page – Posts overview – with one modal for multiple posts?
- WP Rest API – How to get an empty response if query has no posts
- Callback to custom field is not working in WordPress REST API
- Custom Post Type not showing in Rest API on Multisite
- post meta parameter in post custom-post-type endpoint with restapi
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- filter custom post in rest api with custom function
- API Rest Custom Post Type doesn’t return all data
- Custom REST endpoints for a custom post type with custom fields
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- How to get all post of custom post type by rest api?
- Create custom post with meta field with AJAX and the WordPress REST API
- WordPress API for custom post types returns rest_no_route
- set_query_params using custom params defined in functions file?
- How to see posts in taxonomy endpoint
- WP API Response does not show my registered metadata
- REST filters only firing when I have a param set
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- How to add a filter to a custom post type to get adjacent custom posts via the REST API
- How to handle new post from API request?
- wp-json API: not logged in when clicking link to the API from admin mode
- Custom Post Type API doesn’t show taxonomy or category array
- How to make an API call to a custom post type but filtering by meta value?
- Fetching custom post type without knowing post type (REST API)
- WordPress REST API V2: “{CUSTOM_POST_TYPE} matches Term ID List and Term ID Taxonomy Query, but should match only one.”
- no_rest_route in Unit Testing for REST endpoint for CPT registered via show_in_rest
- How can I create new CustomPostType record using wp.api.collections?
- Custom endpoint filtering post by custom taxonomies
- wp rest api orderby field in a custom table
- How To Read Read Custom Post Type Data in Headless CMS Mode
- WP_Query: how to search tags in addition to a custom post type?
- How can I sort the results of a REST API response by the title of a connected custom post type?
- How to filter a matched value with custom key using WP REST API?
- URL issue retrieving Custom Post Types using Backbone JS API
- How to add field to custom post type endpoint
- Create API’s for custom-post types & custom queries using REST or Graphql
- Action on Custom Post publish
- Get Custom Post types data from the API
- How can I add a meta[] to my custom post type and search by term with the Rest API?
- register_rest_field update_callback don’t work for $_FILES
- localize_script or rest api
- Saving custom post types post_meta over REST-API fails
- WP REST API Custom endpoint don’t work in my plugin
- filter rest api post by a acf filed
- How to properly set a value to meta fields of a custom post type in WP-API/node-wpapi REST API?
- How to dynamically register custom post type
- Store custom post type with JSON content
- querying to custom field over ACF REST API
- Create settings page to enable or disable CPT
- Get all posts of any post type in a category from REST API
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- upload image with rest API to the media library
- Pagination not working with custom loop
- Custom post types – show specific posts
- Updating post title using wp_update_post
- Remove parent from custom post type
- Troubles with making a custom template for posts
- Sort by alphabetical order archive.php page
- get_page_by_title() doesn’t retrieve my post
- Specifying meta field’s column type in Database using add_post_meta
- why post_class() function apply css classes to all other files?
- Looping Through Categories of a CPT
- Cannot get custom posts by category
- Convert Custom Table Data Based Plugin To Be Searchable
- Why the_excerpt() function returns excerpt on the Home page and trimmed content in sidebar?
- Two CPT: one is using part of the custom rewrite slug from the other