[Plugin: Multiple Post Thumbnails] Newbe questions
-
Hi,
I’m fairly fresh at PHP and would like some help on how to utilize this plugin. First off, when I activate the plugin I see no changes. No secondary thumbnail box.
Where do I put this text? :
$thumb = new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'page' ) );
Do I use a php markup tag to enclose it? (e.g.
<?php
and?>
)If I want more than one extra thumbnail (as stated in this post: https://www.ads-software.com/support/topic/plugin-multiple-post-thumbnails-more-than-2-thumbs?replies=2 ), I guess this is the required code?
$thumb = new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'page' ) ); new MultiPostThumbnails(array( 'label' => 'Tertiary Image', 'id' => 'tertiary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Quaternary Image', 'id' => 'quaternary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Quinary Image', 'id' => 'quinary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Senary Image', 'id' => 'senary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Septenary Image', 'id' => 'septenary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Octonary Image', 'id' => 'octonary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Nonary Image', 'id' => 'nonary-image', ) ); new MultiPostThumbnails(array( 'label' => 'Denary Image', 'id' => 'denary-image', ) );
But what about
<?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image'); endif; ?>
Where do I add the extra thumbnails?
I tried using (whit no success):<?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'tertiary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'tertiary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'quaternary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'quaternary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'quinary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'quinary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'senary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'senary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'septenary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'septenary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'octonary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'octonary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'nonary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'nonary-image'); && MultiPostThumbnails::has_post_thumbnail('post', 'denary-image')) : MultiPostThumbnails::the_post_thumbnail('post', 'denary-image'); endif; ?>
But I guess that ; ends the code string, right?
Please help
https://www.ads-software.com/extend/plugins/multiple-post-thumbnails/
- The topic ‘[Plugin: Multiple Post Thumbnails] Newbe questions’ is closed to new replies.