Target a certain page within wordpress backend (admin) i.e. Pages > About

You can use the $post global.

Somewhere inside of a function, hooked in appropriately to the post-edit screen:

// Globalize the $post variable
global $post;
// check to see that we are on a page, with a title "About Me"
if ( 'page' == $post->post_type && 'About Me' == $post->post_title ) {
    // This is the "About Me" page;
    // do something
}

Leave a Comment