voceconnect / multi-post-thumbnails

Adds multiple post thumbnails to a post type. If you've ever wanted more than one Featured Image on a post, this plugin is for you.
143 stars 63 forks source link

Have 2nd Featured Image Be Only The Thumbnail on Home and Category Pages? #116

Closed Nick555 closed 7 years ago

Nick555 commented 7 years ago

I use Genesis and i cannot figure out where to paste this snippet so the 2nd featured image shows only as the thumbnail on the home and category pages. Please help. http://factualfairytale.com/

`<?php

if (class_exists('MultiPostThumbnails')) :

MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image');

endif;

?>`

Can you please tell me exactly which folder and line to past this code so the second featured image displays as the thumbnail on the homepage and categories pages?

dimbak commented 7 years ago

not sure if i got your question but you may be looking for conditional tags https://codex.wordpress.org/Conditional_Tags