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

#91738
tobeeornot
Member

@noahgelman

Thanks for that – I appreciate it.

The problem seems to be that when I go to upload the images from the WP back-end, there is no options for selecting multiple images, but it does specify the option to select image dimensions i set.

Functions php:


// Add secondary thumbnail (featured image) in posts */
if (class_exists('MultiPostThumbnails')) {
new MultiPostThumbnails(array (
'label' => 'Secondary Image',
'id' => 'secondary-image',
'post_type' => 'post' )
);
new MultiPostThumbnails(array(
'label' => 'Quaternary Image',
'id' => 'quaternary-image', )
);
new MultiPostThumbnails(array(
'label' => 'Tertiary Image',
'id' => 'tertiary-image', )
);
}
add_image_size('post-secondary-image-thumbnail', 176, 58, true);
add_image_size('post-tertiary-image-thumbnail', 176, 58, true);
add_image_size('post-quaternary-image-thumbnail', 176, 58, true);


I am looking to add three images on this template. This is the template for the relevant page:





What We Do





    query_posts("posts_per_page=1&post_type=page&page_id=168");
    the_post (); ?>



  • MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image', NULL, 'post-secondary-image-thumbnail');
    ?>
    " class="button">View More


  • the_post(); ?>



  • MultiPostThumbnails::the_post_thumbnail('post', 'quaternary-image', NULL,
    'post-quaternary-image-thumbnail');?>
    " class="button">View More






  • 'post-tertiary-image-thumbnail');?>
    " class="button">View More