Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new MultiPostThumbnails(array(
- 'label' => 'Banner Image',
- 'id' => 'secondary-image',
- 'post_type' => array( 'research','events','people','labs','publications','projects','equipment','job','media','page' )
- ) );
- }
- <div class="banner banner-detail row" <?php if (class_exists('MultiPostThumbnails')) : ?> style="<?php MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image') ?>" <?php else : ?>style="background-image: url('/wp-content/themes/tqt/img/hero-dim.jpg')" <?php endif; ?> >
Add Comment
Please, Sign In to add comment