• Hello,

    I’m working on a plugin (my first one!) and am wondering if there are any conditional tags for pages in the admin part of the site. Ultimately, I’m looking for the best way to differentiate between a post-new.php and post.php page. Can anyone point me in the right direction?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • So, you’re trying to figure out a way to determine if the current page view-run of WordPress has the blogger looking at either a post or a new post within the admin area?

    Hmmm… Not sure about a conditional tag (there could certainly be one). I’d say try to parse the URL for certain terms, like the ones you just mentioned (post.php, etc.). I’m not sure how far back in WP versions those filenames are standard, though.

    Also concurrently test for is_admin() to at least confirm that the user is logged in to the admin area.

    -WCC

    Thread Starter ParanoidSardine

    (@paranoidsardine)

    Yes, that is what I’m trying to accomplish. I am currently doing as you suggested and am posing this question just to see if there is a better way to do it. Thanks for your response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Tags for Admin Pages’ is closed to new replies.