Adding column to pages page with page template name
-
I want to add a column in the pages page with the page template name for every page. I manage to add a column to the pages page but i don’t know how to bind the page template name to the column.
This is the code for adding the page template column in functions.php file .function my_custom_pages_columns( $columns ) { $myCustomColumns = array( 'templatename' => __( 'Template') ); $columns = array_merge( $columns, $myCustomColumns ); return $columns; } add_filter( 'manage_pages_columns', 'my_custom_pages_columns' );
I would appreciate your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding column to pages page with page template name’ is closed to new replies.