This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: news-scroller plugin

#1334
Jason Bobich
Keymaster

Note to self for future reference…

I’m thinking this:

<?php if( $instance['image'] == 'show' ) : ?>
	<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'grid_6' ); ?>
	
<?php endif; ?>

Will become this:

<?php if( $instance['image'] == 'show' ) : ?>
	<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'grid_6' ); ?>
	<?php if( $image ) : ?>
		
<?php endif; ?> <?php endif; ?>