I am trying to create a new column for custom post types that reveals the post ID in the Wordpress DB. The custom posts are Recipes from the WP Ultimate Recipe Plugin. The code below works if I change the hook for just posts, but even with the Plugin Developers advice on which hooks of his to use, it won't work...
add_filter( 'manage_recipe_posts_columns', 'revealid_add_id_column', 5 );
add_action( 'manage_recipe_posts_custom_column', 'revealid_id_column_content', 5, 2 );
function revealid_add_id_column( $columns ) {
$columns['revealid_id'] = 'ID';
return $columns;
}
function revealid_id_column_content( $column, $id ) {
if( 'revealid_id' == $column ) {
echo $id;
}
}
Any idea on how to get this to work?