[Plugin: Display Posts Shortcode] Hacking the thumbnail output
-
Hi
I am modifying this plugin to output results “correctly” for my site.
Most of it is working like a charm, only the thumbnail is giving me issues.if ( $image_size && has_post_thumbnail() ) $image = '<a class="contentrotator-thumb" href="'. get_permalink() .'">'. get_the_post_thumbnail($post->ID, $image_size).'</a> ';I am trying to create this as a normal IMG SRC, not a link, but then it all just falls down like a house of cards.
code I an trying to use is
if ( $image_size && has_post_thumbnail() ) $image = '<img class="contentrotator-thumb" src="'. get_the_post_thumbnail().'" />';
The topic ‘[Plugin: Display Posts Shortcode] Hacking the thumbnail output’ is closed to new replies.