I know you can easily add custom meta boxes per post type, but I’m looking to add a custom meta box / custom field for a specific page without getting away from the wordpress ‘pages’ menu.
So for example, when I go to Pages-> Edit ‘Home’ a box called welcome text shows up.
If I edit the page ‘About’, that box wont show up.
Any ideas?
If you want to decide on the edit page whether to add a meta box or not, hook into the
add_meta_boxesoradd_meta_boxes_page(for thepagepost type) actions. They are called right before the boxes are drawn, so you can choose to add one viaadd_meta_box.