I'm trying to create a custom column for my custom post type and I'm having no luck. Below is the code I'm using, I have a similar code that pulls the featured thumbnail and that works for all post types, but this column will only show up on the custom post type. Any help would be appreciated.
add_filter("manage_Featured_columns", "edit_Featured_columns" );
add_action("manage_Featured_column", "custom_Featured_columns");
function custom_Featured_columns($Featured_column) {
global $post;
switch ($Featured_column) {
case "redirect_url":
if(get_post_meta($post->ID, 'redirect_url', true) !='') {
echo get_post_meta($post->ID, 'redirect_url', true);
} else { echo '-'; }
} }
That is the code I have so far, but it's not showing up on the Featured custom post type. The name I'm using in my custom post type is: register_post_type( 'Featured',
Thanks