Title: [Plugin: Network Latest Posts] problem thumbnails
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] problem thumbnails

 *  Resolved [Jenny Beaumont](https://wordpress.org/support/users/jennybeaumont/)
 * (@jennybeaumont)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/)
 * Hya,
 * 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: `http://www.mainsite/blog3/blog3/
   wp-content/blogs.dir/3/files/2012/3/actu1-192x128.jpg` 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!
    -jennyb
 * [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Jenny Beaumont](https://wordpress.org/support/users/jennybeaumont/)
 * (@jennybeaumont)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/#post-2650655)
 * (missing .com in the address example is just a typo 🙂 )
 *  Thread Starter [Jenny Beaumont](https://wordpress.org/support/users/jennybeaumont/)
 * (@jennybeaumont)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/#post-2650748)
 * 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](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/#post-2650769)
 * Hello Jenny I’m glad you found the solution, it’s pretty weird because as you
   can see here: [http://8elite.com/blog/2012/03/14/network-latest-posts-examples/](http://8elite.com/blog/2012/03/14/network-latest-posts-examples/)
   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.
 *  Thread Starter [Jenny Beaumont](https://wordpress.org/support/users/jennybeaumont/)
 * (@jennybeaumont)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/#post-2650774)
 * Heya – thanks for responding. I notice in your site that the URLs actually start
   wp/content/, rather than the full on [http://…just](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!
 * best,
    -jennyb 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.

 * ![](https://s.w.org/plugins/geopattern-icon/network-latest-posts_61c601.svg)
 * [Network Latest Posts](https://wordpress.org/plugins/network-latest-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-latest-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-latest-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/network-latest-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-latest-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-latest-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jenny Beaumont](https://wordpress.org/support/users/jennybeaumont/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-problem-thumbnails/#post-2650774)
 * Status: resolved