In my Admin Panel I have a custom post type of posts – with page attributes to define order. Is there “easy” way of changing how the admin panel pulls posts so I can reorder them?
Page Attributes define order and parents. My Custom Post Type isn’t a page but it still supports Page Attributes because I want to order them in a meaningful way.
Currently in WordPress Admin Panel when using Custom Post Types and Page Attributes, the Admin Panel doesn’t order posts in the defined order, it instead orders all posts by publish date (so newest on top). I’m looking to use Page Attributes to order my Custom Post Type posts in the admin panel in the same order defined by Page Attributes.
Even more clarification:
Defined in register_post_type()
as supports => array()
Found Here
The expected outcome would be something like this, where the post with page attribute 0 is at the top and the greatest page attribute would be at the bottom:
Post list in admin (edit.php) use a normal
WP_Query
, just like frontend can be changed usingpre_get_posts
.