3 tier featured image using MultiPostThumbnails.
-
Trying to create a 3 tier featured image using MultiPostThumbnails.
Basically what I want is to create is… if there is no Secondary image (MultiPostThumbnails) it falls back to standard Featured image, but if there is no featured image it goes to a standard generic image (gif or jpg). Got this far but is broken – Displays (MultiPostThumbnails) and doesnt fall back to others. Any help peeps?!
<?php if (class_exists('MultiPostThumbnails')) { MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image', NULL, 'standard-size'); } elseif (has_post_thumbnail()) { the_post_thumbnail( 'standard-size'); } else { echo '<img class="attachment-standard" src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/blank-image.jpg" />'; } ?>
http://wordpress.org/extend/plugins/multiple-post-thumbnails/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘3 tier featured image using MultiPostThumbnails.’ is closed to new replies.