• Resolved beernews

    (@beernews)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Thumbnails not working? Try this!’ is closed to new replies.