Restrict to certain post ids or templates
-
Is there a way to further restrict this functionality So, for example, If I have a template for the homepage, can I just ensure that the option or further thumbnails only appear on that template either by specifying a post id or template name? Something along the lines of:
if (class_exists('MultiPostThumbnails')) { $types = array('post', 'page', 'my_post_type'); foreach($types as $type) { new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => $type, 'post_id' => array(1, 23, 45) ) ); } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict to certain post ids or templates’ is closed to new replies.