Title: [Plugin: Network Latest Posts] class for thumbnail
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] class for thumbnail

 *  Resolved [sergeyzimin](https://wordpress.org/support/users/sergeyzimin/)
 * (@sergeyzimin)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-class-for-thumbnail/)
 * if we gonna use an attribute ‘size’ then we need implement another attribute ‘
   image_class’.
 * ____________________________________________________
    function network_latest_posts(
   $how_many=10, $how_long=0, $titleOnly=true, $begin_wrap=”\n
    - “, $end_wrap=”
    - “, $blog_id=’null’, $thumbnail=false, $cpt=”post”, $ignore_blog=’null’, $cat
      =’null’, $tag=’null’, $paginate=false, $excerpt_length=’null’, $display_root
      =false, $auto_excerpt=false, $full_meta=false, $size = ‘thumbnail’ , **$image_class
      =’post-thumbnail’** ) {
       _______________________________________________________________**
      $attrs = array(‘class’=> $image_class);** $thumbcode = str_replace( $current_blog-
      >domain . $current_blog->path, $blogdetails->domain . $blogdetails->path, 
      get_the_post_thumbnail( $post_id, $size, $attrs ) ); ________________________________________________________________
      function network_latest_posts_shortcode($atts){ // Constructor extract(shortcode_atts(
      array( ‘title’ => null, ‘number’ => ’10’, ‘days’ => ‘0’, ‘titleonly’ => true,‘
      wrapo’ => null, ‘wrapc’ => null, ‘blogid’ => ‘null’, ‘thumbnail’ => false,‘
      cpt’ => ‘post’, ‘ignore_blog’ => ‘null’, ‘cat’ => ‘null’, ‘tag’ => ‘null’,‘
      paginate’ => false, ‘excerpt_length’ => ‘null’, ‘display_root’ => false, ‘
      auto_excerpt’ => false, ‘full_meta’ => false, ‘size’ => ‘thumbnail’, **‘image_class’
      => ‘post-thumbnail’** ), $atts)); _____________________________________________________________________
      function the_post_thumbnail_by_blog($blog_id=NULL,$post_id=NULL,$size=’thumbnail’,**
      $image_class,**$attrs=NULL) { return get_the_post_thumbnail_by_blog($blog_id,
      $post_id,$size,$image_class,$attrs); } __________________________________________________________________
      function get_the_post_thumbnail_by_blog($blog_id=NULL,$post_id=NULL,$size=’
      thumbnail’,**$image_class,**$attrs=NULL) { _________________________________________________________
      echo ‘</span>[‘.the_post_thumbnail_by_blog($blognlp,$thispost[$i]->ID,$size**, $image_class**).’](https://wordpress.org/support/topic/plugin-network-latest-posts-class-for-thumbnail/&apos;                                         .$thispermalink.&apos;?output_format=md)
      <p class=”network-posts-excerpt”>’; _______________________________________________________________
    - and now we can set our own class for thumbnail image. Try **image_class=’ 
      alignleft’**
    - [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-class-for-thumbnail/#post-2913298)
 * Hello Sergey,
 * Thanks for your feedback, this is a good idea. I’m entirely rewriting this plugin
   to make it easier to maintain, improve the features and remove some buggy behaviors
   included in the initial releases.
 * The new version will be better in many ways, this will be included for sure. 
   I will be releasing the version 3 soon.
 * Cheers.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Network Latest Posts] class for thumbnail’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-class-for-thumbnail/#post-2913298)
 * Status: resolved