• We are currently displaying master images called ‘master-images’ from our blog posts called ‘posts’ on our homepage, but we would like to have the option of also including our magazine articles known as ‘articles’ when we choose them with your plugin. I’ve tried selecting magazine articles with the plugin but they won’t display.

    How do I code this to display the ‘master-images’ from not only just ‘posts’ but also ‘articles’?

    <?php global $post; $do_not_duplicate[] = $post->ID; if (class_exists(‘MultiPostThumbnails’) &&

    MultiPostThumbnails::has_post_thumbnail(‘post’, ‘master-image’, $post->ID)) {
    MultiPostThumbnails::the_post_thumbnail(‘post’, ‘master-image’, $post->ID, array(650, 400), array(“title” => $title)); } else {

    echo get_the_post_thumbnail($post->ID, array(650,400), array(“title” => $title)); } ?>

    https://www.ads-software.com/extend/plugins/multiple-post-thumbnails/

  • The topic ‘Displaying Images from Two Different Post Types’ is closed to new replies.