WordPress widget: TagPosts
- Posted by kajyr on January 20th, 2010
- 7 Comments »
I’ve written a small wordpress widget, to show in the sidebar all the posts from a given tag, or from the tag archive page you are visiting, or both.
You can see in action in this blog, if you select any tag from the sidebar in homepage.
I’ve taken inspiration from the Category Posts Widget 3.0 by James Lao.
You can download the plugin from the wordpress repository.

Hey, thanks for plugin. I’ve found a bug.
After: // Post list
echo “\n”;
.
.
.
you had: echo ‘\n’;
so fix it to echo “\n”; (otherwise you’ll have /n after displayed posts.
February 23rd, 2010 at 22:29
It seems I cant post a comment with the ul :( So just find that line and change ‘ for “
February 23rd, 2010 at 22:31
Thanks for the message, i’ll fix it now :-)
Carlo.
February 23rd, 2010 at 23:45
Hi Kajyr, thanks for making this plugin. It works a treat.
One request, can the titles actually be made smaller? it appears larger than the other words in the sidebar. I have no idea how to edit this. Thanks peace jerel
March 20th, 2010 at 17:04
Hi Jerel, thanks :-)
For the size of the titles, you have to style them using CSS, in your blog theme.
Have fun!
Carlo.
March 20th, 2010 at 17:53
thanks carlo, i’ll have a look for that.
March 21st, 2010 at 08:23
Maybe you want to add a “wp_reset_query()” at the end of you loop.
Using your widget with multiple loops in a theme that has widget area BEFORE the post’s loops (especially in a single post) causes serious problems.
Resetting the query with “wp_reset_query()” will solve the issue.
May 8th, 2010 at 10:53