I am new to the WordPress dev framework, although I can program in PHP. I am using WP 5.0.3 and my question is a general one (not theme-related): in the Admin area, when you click Pages, the list of pages appears, showing the usual page properties (Title, Author, Categories, Tags, …etc).
I would like to add a new heading, Page ID, so I can see the Id of each page in the list. (I would like to do the same for the list of Posts.) To this end, I need to know:
i) which file is responsible for displaying the Page list,
and
ii) as I want to avoid a messy hack, is it possible to use a duplicate of this file in my theme directory, so that I can hack that – and it won’t be overwritten with each new WordPress release? Or is there some other clean way I can add that information?
Thanks in advance
PH
page properties (Title, Author, Categories, Tags, …etc).
(of a page)
link?
]]>Hi, to send a link I would have to make you an admin member of my site.
Please do not. Offering to give someone access to your site or someone asking for access to your site can get that person banned from this place.
If you do not want to share a URL then that is alright. But do not offer anyone that sort of access on this site. That is not how these forums work.
]]>Thanks
PH
I finally had time to search more, and found a number of articles online once I started using the right search times, e.g. wordpress custom admin columns. One that helped a lot was this:
https://code.tutsplus.com/articles/add-a-custom-column-in-posts-and-custom-post-types-admin-screen–wp-24934
I didn’t particularly want to make a custom column, but this was helpful anyway.
Also https://www.smashingmagazine.com/2017/12/customizing-admin-columns-wordpress/
In addition to displaying Post IDs, I’d also like to make the Tags column sortable. Tags is a particular problem because the ‘post_tag’ column is is not in the wp_posts table, but in wp_term_taxonomy.
Anyone have any tips about make Tags sortable in the posts/pages admin list?
Tks
PH