[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/
- The topic ‘[Plugin: Network Latest Posts] Little changes’ is closed to new replies.