Support » Plugin: Network Latest Posts » [Plugin: Network Latest Posts] Little changes

  • Resolved Lethys



    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
    but it seems that the widget doesn’t have this. I checked the code, and i saw this :
    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>';
    	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 😉

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Luis SAYAGO


    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.