I am trying these solutions in functions.php, but the global variables seem to have no values in my custom post types.
For instance, I have simple echo/print_r statements to tell me the values of $post->post_type and $current_screen but they are both always empty. Even when I’m trying to create a plain old Post.
Any ideas why that might be happening?
I am using the Custom Content Type Manager plugin to create my custom post types, but I am open to other solutions, including creating my own plugin if necessary.
Thanks!