Title: [Plugin: Network Latest Posts] Breaks my theme.
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] Breaks my theme.

 *  Resolved [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/)
 * Hi
 * Although i have set posts to 5 it displays all. And when that happens and pagination
   pops in. It breaks my theme completely due to the fact that there is one div 
   missing!!! Cause by the titleonly set to true.
 * My sidebar is dragg underneath the content listing.
 * If i add the div after the shortcode it is working again.
 * It happens when title_only is set to true !!!
 *     ```
       [nlposts title='Latest Posts' number='5' blogid='14' titleonly=true]
       ```
   
 * like this it works
 *     ```
       [nlposts title='Latest Posts' number='5' blogid='14'  titleonly=true] </div>
       ```
   
 * If i modify the program code to
 *     ```
          // Put the content where we want
       	if ($titleonly == true) { $output_string = $output_string . '</div>';}
           return $output_string;
       ```
   
 * It works. So somewhere a closing div is left out.
 * I also do not understand understand why the number=’5′ is not working in the 
   code below
 * Please help me out on this.
 * i have this code
 *     ```
       [nlposts title='Latest Posts' number='5'  titleonly=true wrapo='<div>' wrapc='</div>' blogid=null thumbnail=true cpt=post ignore_blog=null cat=null tag=null paginate=false excerpt_length=null display_root=false auto_excerpt=true full_meta=false blogid='14']</div>
       ```
   
 * Still pagination shows up.
 * I hope all makes sence.
 * Thanks
 * [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

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

 *  Thread Starter [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799651)
 * Hi
 * If i use this shortcode i have to add a opening tag otherwise my theme sidebarbreaks
   completely.
 *     ```
       [nlposts title='Latest Posts' number='2'  titleonly=false wrapo='<div>' wrapc='</div>' thumbnail=false excerpt_length='50' display_root=false auto_excerpt=true full_meta=true blogid='14']
       ```
   
 * It only works like this.
 *     ```
       <div>[nlposts title='Latest Posts' number='2'  titleonly=false wrapo='<div>' wrapc='</div>' thumbnail=false excerpt_length='50' display_root=false auto_excerpt=true full_meta=true blogid='14']
       ```
   
 * I think there is some work need to be done. Because I use it for 10 mintes and
   i have already two breakups.
 * Please let me know something
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799662)
 * Hi
 * The category shows me 5 post but not the latest ones. I want the latest 5 posts
   to show. Sorted from most recent to latest.
 * How to accomplish this?
 * Thanks
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799783)
 * Hi,
 * Well I’ve tested the title only parameter and it’s working without problems, 
   I can’t see where’s the closing tag missing:
 *     ```
       <div id="wrapperw-2">
              <div id="wrapper-2">
                    <div class="network-posts blog-2">
                          <h1 class="network-posts-title">Title</h1>
                    </div>
               </div>
       </div>
       ```
   
 * You can see at the bottom of the page the example: [Network Latest Posts Examples](http://8elite.com/blog/2012/03/14/network-latest-posts-examples/)
 * To show the latest posts you should set the `days` parameter to the number of
   days you want to display, in my examples I’m using 200 days old.. You can set
   for example 30 for 1 month.
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799788)
 * Hi Louis,
 * Well i have completely written my own plugin + shortcode. Because i have never
   seen this kind of coding.
 * Also why call the sql database like this? WP has a perfect function for switching
   to the correct blogid and back and while switched call for the proper recent 
   post list?
 * Anyway it has cost me a day but i have my own written code and nothing breaks
   anymore when a sidebar is active.
 * Also my recent listed post now matches my posts in the database and not a singular
   is skipped.
 * So i solved my problem my own way.
 * Thanks again for giving me the stuff to think about and to start writing it in
   my own theme.
 * Goodluck with your plugin.
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799789)
 * That’s great. Good you solved your issues.
 * Cheers.

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

The topic ‘[Plugin: Network Latest Posts] Breaks my theme.’ 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/)

## Tags

 * [breaks](https://wordpress.org/support/topic-tag/breaks/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-breaks-my-theme/#post-2799789)
 * Status: resolved