Back to Top

How to add column In Post Manage Page WordPress

To add custom column to the list page in Wordpress

WordPress is a great platform for building any kind of websites and it has a sufficient back-end, but sometimes you need to make changes in layout.

In this post, we’re going to go through how to add a new column into post listing dashboard of WordPress admin.

Let’s dive into the steps to add featured image into the post listing page.you need to add below code into your theme’s function.php file.

First of all, you need to write add filter and add_filter used to add new label of column is manage_post_posts_columns.

Must Read: How to use Ajax in WordPress with example

Next, you can add action which will be useful to display image into listing page.Here I wanted to display featured image so I have used function get_the_post_thumbnail.

Read about: Customize Contact Form 7 in WordPress

Here,get_post_custom function which returns values with all custom fields of a particular post or page.here case is the key of the array passed to create a label.

So, now you have a new column in post listing.you can see into your WordPress backend.you can add any field by following above steps.

Thank you for reading.Feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How to use WebService in PHP

Posted on 9 years ago

Bhumi

In depth Understanding of Laravel Core

Posted on 5 years ago

Bhumi

How to use Transient API in WordPress

Posted on 9 years ago

Bhumi