[Plugin: Verve Meta Boxes] Cant add Custom Column Info in write post page
-
I am trying to add my meta box ‘project_type’ from custom post type ‘project’ as a new custom column:
add_filter(‘manage_edit-project_columns’, ‘project_columns’);
add_action(‘manage_project_custom_column’, ‘project_custom_column’, 10, 2);function project_columns($defaults) {
$defaults[‘project_type’] = ‘Project Type’;
return $defaults;
}function project_custom_column($column_name, $post_id) {
global $wpdb;
if( $column_name == ‘project_type’ ) {
echo get_post_meta($post_id, ‘project’, true);
}
}
The column shows, but the value never does. I am wondering if this has anything to do with the plugin?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Verve Meta Boxes] Cant add Custom Column Info in write post page’ is closed to new replies.