[wp-trac] [WordPress Trac] #62853: Order posts and terms by drag and drop from administration
WordPress Trac
noreply at wordpress.org
Fri Jan 24 09:37:32 UTC 2025
#62853: Order posts and terms by drag and drop from administration
-------------------------------+------------------------------
Reporter: dhenriet | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by dhenriet):
Hello @knutsp thanks for your feedback !
yes in fact for the posts I agree, I can understand that it can change the
default operation and break things with plugins or other. There's little
point in ordering posts manually.
The biggest interest lies in taxonomy terms and pages.
Manual page ordering can be really useful when creating structures with
child pages, and automatically retrieving all these child pages with
get_posts() or get_post_ancestors() to create a navigation menu.
[[Image(https://github.com/user-attachments/assets/aeb0b2b7-c6ab-443d-
8bbf-5919495a443d)]]
So maybe this orderby wouldn't be present by default but rather as a
parameter to be passed in query, so it could be applied to any type of
post-type including posts ?
For example :
'orderby' => 'manual',
'orderby' => 'drag_and_drop',
'orderby' => 'user_choice'
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62853#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list