Opened 2 years ago
Last modified 2 years ago
#55733 new feature request
Add option to sort Pages by Slug
Reported by: | zevrix | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.9.3 |
Component: | Posts, Post Types | Keywords: | close |
Focuses: | ui, administration | Cc: |
Description
Please add an option to sort list of Pages by Slug (that is, make the Slug column sortable).
Right now, for some reason, WordPress only offers to sort by Title - which is of useless as Title is just a SEO-formatted blurb that's irrelevant for a meaningful sort order.
(Yes, I'm aware of a free plug-in - that appeared just 3 months ago - that allows to sort by slug. Still, this essential feature must be in core WordPress functionality).
Change History (3)
#1
follow-up:
↓ 2
@
2 years ago
- Component changed from General to Posts, Post Types
- Keywords close added; reporter-feedback removed
#2
in reply to:
↑ 1
;
follow-up:
↓ 3
@
2 years ago
Replying to SergeyBiryukov:
Thanks for the clarification!
Ok I'm astonished that the Slug column wasn't even there by default. I guess I forgot by now that it's apparently added by a plug-in.
Also, the ticket #49679 you mentioned refers to the Posts list. Which I guess is relevant for those who run blogs or other post-based websites.
I'm however talking about Pages.
My website only has Pages and I don't use any posts (just like many other websites). Page slug is usually short - and slug is THE page identifier (as opposite to the Title which is just a commercial blurb).
The Slug column is akin to the File Name column in macOS Finder or Windows File Explorer. I can't imagine it not being present there by default (and then not being sortable after adding by a utility).
That's why I believe that a sortable Slug column should be in the core implementation of the Pages list.
#3
in reply to:
↑ 2
@
2 years ago
Replying to zevrix:
Also, the ticket #49679 you mentioned refers to the Posts list. Which I guess is relevant for those who run blogs or other post-based websites.
I'm however talking about Pages.
Thanks for the clarification! The list of columns for posts, pages, and custom post types is determined by the same WP_Posts_List_Table::get_columns() method, so if the Slug column is ever reconsidered, I think it would be implemented for all of them.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
On the Pages screen in WordPress core, there is no Slug column on a clean install, only Title, Author, Comments, and Date. Having a Permalink column was previously suggested in #49679 but the idea did not reach consensus.
The Slug column was probably added by a plugin or theme on your install. Since it's not present by default, it doesn't look like this is something for WordPress core to address at this time.