Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Multiple Post Thumbnails WP plugin Re: Multiple Post Thumbnails WP plugin

#91919
noahgelman
Participant

Yeah, your code is a bit different than mine. Here is an example of mine.

Functions.php


if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails(array( 'label' => 'Second Featured Image', 'id' => 'second-image', 'post_type' => 'post' ) ); }

Page code:


if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('post', 'second-image')) :
MultiPostThumbnails::the_post_thumbnail('post', 'second-image', NULL, 'blog-post-thumbnail');
endif;
?>

Compare them and see the differences with yours