WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to determine if post.php (dashboard) is custom post type?

[Resolved] How to determine if post.php (dashboard) is custom post type?

  • Hello,
    How can i determine through coding if a post.php is requested by a custom post type?

    The “add new” option says &post_type=. But when i want to edit posts in my custom post type, no such thing can be found in the URL. I already have this code

    if(($pagenow == 'post.php' || $pagenow == 'post-new.php') && $post->post_type=='blog')

    How to check it for post.php?
    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to determine if post.php (dashboard) is custom post type?’ is closed to new replies.
Skip to toolbar