Find out in this tutorial how to display a custom admin column in WordPress that displays post and page ID using code.
As a fan of minimalism, I recommend you to remove all the elements that you are not going to use from the Genesis and WordPress child themes.
This is especially useful for your clients, since you avoid “noise” and help them to have at hand only what they really need to modify.
In previous tutorials you learned how to do a useful ‘cleanup’ and leave only the 100% necessary elements in WordPress customizer or even how to remove all widgets from the WordPress admin.
However, there are situations where you can usefully add a new custom column in the WordPress admin.
For example, imagine you need to know the ID of a page to display a conditional widget only on it.
It’s true that you can find out the ID of a post or page by going to edit it and checking its ULR. But having the ID of all pages and posts at hand from the WordPress admin screen can be very convenient if you need to consult it often, don’t you think?
In this tutorial you are going to discover how to enter a custom admin column that displays the ID of WordPress posts and pages.
This would be the final result:
If you are a WordPress implementer or developer I am convinced that you will find this tutorial very practical.
Snippet to insert in WordPress admin a column with pages and posts ID
Add the following code snippet to your functionality plugin:
You got it.
Do you want to have page and post IDs at hand? Now you know how to display them by adding a new column in the WordPress admin with a simple snippet.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂