Title: [Plugin: Network Latest Posts] Little changes
Last modified: August 20, 2016

---

# [Plugin: Network Latest Posts] Little changes

 *  Resolved [Lethys](https://wordpress.org/support/users/lethys/)
 * (@lethys)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-little-changes/)
 * Hello,
 * First, i want to thank you for this plugin, it’s great 🙂
 * But there is some problems for me.
    I use the widget, and i want my `<li>` to
   be round by `<ul></ul>` but it seems that the widget doesn’t have this. I checked
   the code, and i saw this : `$begin_wrap="\n<ul><li>"` Well i understand what 
   the code do in the “just show the titles”, there is the begin_wrap and the end_wrap
   around my titles, but there is only the `<li>` part and not the `<ul>` part. 
   Of course this is good, but i do not understand why there is no `<ul></ul>`… 
   So, i add some `<ul>` for the widget, this how i managed it :
 *     ```
       // Display the widget
       	echo $before_widget;
       	echo "$before_title $options[title] $after_title";
       	echo '<ul>';
       	network_latest_posts($options['number'],$options['days'],$options['titleonly'],"\n<li>","</li>");
       	echo '</ul>';
       	echo $after_widget;
       ```
   
 * As you can see i just add the `<ul>` 😉
 * This resolve my problem, i don’t know if it’s the best way, but if you can add
   this in your plugin that would be great.
 * I have an other “problem”, this is for the display of the title, i don’t think
   this is good to put them into a div and into a `<h1>`…
    I wanted to have something
   like the widget recents posts, so i deleted the h1 and div thing, and just put
   something into the title of the `<a>`, and this is the code : `echo $begin_wrap.'
   <a href="'.$thispermalink.'" title="'.$thispost[$i]->post_title.'">'.$thispost[
   $i]->post_title.'</a>'.$end_wrap;`
 * This is up to you to let your div and h1, but i don’t think the h1 is good for
   SEO in the widget 😉
    [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)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-little-changes/#post-2619396)
 * Hi Lethys thanks for spotting this, I totally forgot to add the `<ul></ul>` tags,
   this is fixed in the version 1.1. Also the `<h1></h1>` tags are removed now when
   using it as a widget, this allow us to keep the title tags when used as a shortcode.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Network Latest Posts] Little changes’ 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: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-network-latest-posts-little-changes/#post-2619396)
 * Status: resolved