Posts By Tag WordPress Plugin

Posts By Tag WordPress Plugin

Posts by Tag WordPress Plugin, provides sidebar widgets which can be used to display posts from a specific set of tags in the sidebar.

The Plugin caches the posts of each widget separately, and issues database queries only when needed. This will reduce the amount of database queries involved for each page load and will therefore be light on your server.

Download

You can download the Plugin as a zip file from the WordPress Plugin repository.

Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page. You should see a new widget called “Tag Posts” in the widgets pages, which you can drag and drop in the sidebar of your theme.

Features

Posts By Tag Plugin provides a sidebar widget which can be configured to display posts from a set of tags in the sidebar. You can have multiple widgets with different set of tags configured for each one of them.

Each widget allows you to choose

  • The set of tags whose posts should be displayed
  • The number of posts to be displayed.
  • Option to enable post excerpts to be displayed with post titles.
  • Option to display post thumbnail if present.
  • Option to specify the sort order for posts

Screenshot

tag-posts-widget-settings

Template Tag

The Plugin also supports the following template tag which can be used to display the posts in any part of the theme.

postsbytag($tags, $num, $excerpt = false, $thumbnail = false, $order = “desc”);

  • $tags (string) – set of comma seperated tags
  • $num (number) – number of posts to display
  • $excerpt (bool) – To display post excerpts or not
  • $thumbnail (bool) – To display post thumbnails or not
  • $order (asc,desc) – To change the order in which the posts are displayed.

Translation

  • Swedish (Thanks Gunnar Lindberg Årneby)
  • Turkish (Thanks Yakup Gövler)
  • Belorussian (Thanks FatCow)

The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.

Feedback

If you have any comments or if you want to report any bugs, please leave a comment below or contact me.

Stay updated

I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.

Changelog

  • 2009-07-26 – v0.1 – Initial Release
  • 2009-08-02 – v0.2 – Added Template function and Swedish translation.
  • 2009-08-14 – v0.3 – Improved cache performance and added Turkish translation.
  • 2009-09-16 – v0.4 – Added support for sorting the posts (Thanks to Michael http://mfields.org/).
  • 2010-01-02 – v0.5 – Removed JavaScript from unwanted admin pages and added Belorussian translation.

Share thy love

23 Comments so far

Trackback URI | Follow up comments through RSS Feed | Post a comment

14 Trackbacks/Pingbacks so far

Leave a Comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">