Multiple Post Thumbnails
Restrict MPT to specific post (1 post)

  1. Christoph
    Posted 4 years ago #

    Hi, sometimes i need Multiple Post Thumbnails only on specific pages. I don't want the metaboxes to appear when editing other pages. My two questions are:

    (1) Is there a way to restrict MPT to a specific post_id?
    I tried the following in functions.php, but the media-upload dialog is missing the "set secondary image" option.

    if ($_GET['post'] == '85') {
    if (class_exists('MultiPostThumbnails')) {
        new MultiPostThumbnails(array(
        'label' => 'Secondary Image',
        'id' => 'secondary-image',
        'post_type' => 'page'

    (2) Do you consider adding more filter options to the plugin?
    E.g. WpAlchemy has a bunch of filter options which are very handy like 'include_post_id' => 85

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple Post Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic