Support » Plugin: Network Latest Posts » [Plugin: Network Latest Posts] problem thumbnails

  • Resolved Jenny Beaumont



    This is an awesome plugin! Have been looking for something as flexible as this for a long time.

    I do have one small hangup – the path for the thumbnails isn’t correct. Somehow in this line:
    $thumbcode = str_replace( $current_blog->domain . $current_blog->path, $blogdetails->domain . $blogdetails->path, get_the_post_thumbnail( $post_id, $size, $attrs ) );
    the current blog is published twice, giving me a src path for the image that looks something like this:
    I’ve tried commenting out the second path name, but the url is then missing a / – can’t seem to work it out.

    thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • (missing .com in the address example is just a typo 🙂 )

    hmmm, ok, this finally worked for me:

    $thumbcode = str_replace( $current_blog->domain /*. $current_blog->path*/, $blogdetails->domain /*. $blogdetails->path*/, get_the_post_thumbnail( $post_id, $size, $attrs ) );

    Plugin Author Jose Luis SAYAGO


    Hello Jenny I’m glad you found the solution, it’s pretty weird because as you can see here: they work perfectly, maybe it’s something related to the way your blogs are created but I couldn’t say, wish I could reproduce this behavior. I’ll test your solution to see if everything keeps working as it does right now, if so I’ll add this as a patch, so you don’t have to hack the code each time you update the plugin.

    Kind regards.

    Heya – thanks for responding. I notice in your site that the URLs actually start wp/content/, rather than the full on http://…just realized that I use a plugin to strip out the /blog/ from the URL – maybe that has something to do with it? In any case, my images show up great with those bits commented out 🙂

    now if I could just figure out how to target taxonomy – man joining those tables up are giving me major grief!

    ps : and thnx again for the great plugin 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Network Latest Posts] problem thumbnails’ is closed to new replies.