Current status: Unsolved. . Done
Post_Object showing posts in wrong hierarchy
  • I have several "Post Object" fields which show the entire list of pages on the site, however they are not properly displaying the correct hierarchy of the pages.

    For example I have a "Company History" page that is a child of the "About us" page, but ACF's dropdown is showing it as a child of the "Contact us" page. Please see the screenshots attached to see the discrepancy.

    image

    image
    page hierarchy.png
    238 x 276 - 14K
    post_object hierarchy is wrong.png
    223 x 127 - 11K
  • I have the same issue; in core/fields/post_object.php, function create_field, the items are ordered by menu_order and there is no grouping by parent page. Maybe the wp_dropdown_pages function (http://codex.wordpress.org/Function_Reference/wp_dropdown_pages) could be used for this, using the current post type as an argument for the function.

    edit-
    My bad, this was fixed yesterday : ) thanks!