• Resolved inogo

    (@inogo)


    Hi there

    I’ve added a textfield to the ‘edit page’-page in the admin. Kind off a secont exerpt. That works fine.
    But how can I only show it if the user is editing a certain page? Something like:

    if (is_admin && page_id = '2') {
       // show the textfield
    }

Viewing 1 replies (of 1 total)
  • Thread Starter inogo

    (@inogo)

    Nevermind, I did this:

    if ($_GET['post'] == 2) {add_action( 'admin_menu', 'my_create_post_meta_box' );}

Viewing 1 replies (of 1 total)
  • The topic ‘Only show if editing certain page’ is closed to new replies.