How to add order column to Wordpress Word pages?
3 answers
I think you need to add a column to your page list page
The following code will add a column to your page list,
add_filter('manage_pages_columns', 'my_columns');
function my_columns($columns) {
$columns['order'] = 'Order';
return $columns;
}
add_action('manage_pages_custom_column', 'my_show_columns');
function my_show_columns($name) {
global $post;
switch ($name) {
case 'order':
$views = $post->menu_order;
echo $views;
break;
}
}
+6
source to share
@chhorn Soro you need to go through this nice answer https://wordpress.stackexchange.com/questions/43970/adding-menu-order-column-to-custom-post-type-admin-screen .
this will help you display / add a new field to the list
0
source to share