[Plugin: WordPress Popular Posts] Thumbnails not working? Try this!
-
This may be unique to my configuration (my rewrite rules) but I had the hardest time getting thumbnails to show despite having set the options properly in the widget. This is how we got thumbnails to show:
Regular installations:
Add: $img[1] = preg_replace(‘/’ . preg_quote(get_bloginfo(‘url’), ‘/’) . ‘/’, ”, $img[1]);
…on line 252 above the line “$thumb = “ID)….”
WordPress MU Installations:
Add: $img[1] = preg_replace(‘/’ . preg_quote(get_bloginfo(‘url’), ‘/’) . ‘/’, ”, $img[1]);
if (‘/files/’ == substr($img[1], 0, 7)) {
$img[1] = BLOGUPLOADDIR . str_replace( ‘..’, ”, substr($img[1], 7));
$img[1] = substr($img[1], strlen(ABSPATH));…on line 271 above the same exact line
- The topic ‘[Plugin: WordPress Popular Posts] Thumbnails not working? Try this!’ is closed to new replies.