[Plugin: WordPress.com Popular Posts] Code to add a tag for thumbnails
-
Hi guys, just added a bit of code to make a shortcut for displaying the post’s thumbnail along with the link.
I added this on line 335:
// %post_thumbnail% by James C. Hodgson, Jr if ( FALSE !== strpos( $instance['format'], '%post_thumbnail' ) ) { // ...and take yo picture; i wanna get witcha. I won't cuss or hitcha! $thumb = get_the_post_thumbnail( $post['post_id'], 'thumbnail'); $replace['%post_thumbnail%'] = $thumb; }Not sure if it’s helpful to anyone, but if it is, that’s all there is to it.
Any chance of this making it into the plugin?
Thanks!
http://ww.wp.xz.cn/extend/plugins/wordpresscom-popular-posts/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: WordPress.com Popular Posts] Code to add a tag for thumbnails’ is closed to new replies.