Restrict MPT to a certain page
-
Apologies if this has been answered before – a search turned up nothing.
I would like to limit the Meta Boxes in MPT to a certain page in the admin area. Not quite sure how to do this, ie where to hook in, and if it’s at all possible to hook into it.
1. set up MPT and restrict it to the ‘Page’ post type
2. check if we’re on the admin view of a certain page ID, and only then fire up the add_meta_box or add_meta_boxes function(s).I’m looking for help with part 2. (I know that Meta Boxes can be limited to certain page IDs in WordPress, I just don’t know how to grab the ones that MPT sets up)
Thanks
https://www.ads-software.com/plugins/multiple-post-thumbnails/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict MPT to a certain page’ is closed to new replies.