﻿id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 49623 Hierarchical Custom Post Types do not show up in the REST API alanford123 "When querying custom post types that are hierarchical, every non-parent item does not get returned. To reproduce: Create a custom post type, with {{{ 'hierarchical' => true, }}} Add some items, and set some to be child items. Try to get a list of all the items using REST API, as such: {{{ ?rest_route=/wp/v2/-custom-post-type- }}} Observe that not all items get returned. All that are child items do not get returned. It may have something to do with the url structure. Pages work as expected, and pages have all items with the same URL structure, {{{ ?page_id=1 }}} Regardless of being child or not. Custom post types have a different url structure, where the items dont actually have id as their URL, but their slug. CHild items have ""parent-slug/child-slug"" " defect (bug) closed normal REST API 4.7 normal worksforme reporter-feedback rest-api