Closed guuthemes closed 10 years ago
Yes, you can use MultiPostThumbnails::get_post_thumbnail_url ()
(http://voceconnect.github.io/multi-post-thumbnails/#get-post-thumbnail-url) to get the URL to the thumbnail and use that when outputting your CSS.
Thanks man. Have gone back to the default method, but cheers for the swift reply.
Hi folks,
Is there anyway to set the 2nd featured image as a background image, so I can play with background-attachment, that kind of thing?
This is what I currently have -
<?php if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'header-image', NULL, 'header-image-full'); endif; ?>
thanks