I have created a custom post type (screen shot below), and would like to change the order of columns. Is it possible to move the “tags” column before the “date” column?
Screen shot:
I have created a custom post type (screen shot below), and would like to change the order of columns. Is it possible to move the “tags” column before the “date” column?
Screen shot:
Comments are closed.
Yes this is possible. I have changed this for the default post type, but this is also possible for a custom one.
First check the codex:
http://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column
You can change the $defaults array as you like this way.
Yes You can change the order of your list shown in Admin Panel. First you have to unset the default array after that make array of your choice let me show with example
The following image show custom post type default field.
Now let me show you how you can remove some extra field from this list. Suppose i want to remove the title and tags field from the list and add my custom post type field and also rearrange the order of list fields
If you want to remove the field just use unset(field_name), if you want to change the order of the list first unset that field then make a new array and add that field after or before other field. I hope this example would help you