Tag Archives: Posts By Tag

Posts By Tag Plugin now supports excluding current post

I recently released a couple of updates to my Posts By Tag WordPress Plugin, which allows you to display a list of posts based on tags either in the sidebar as a widget or inside your posts using either shortcodes or a template tag.

Changes

The following are the changes that I have made to the Plugin

  • Ability to exclude current post/page
  • Moved caching logic to widget
  • Added Lithuanian translations

Ability to exclude current post/page

One of the most requested feature in the Plugins was to have the ability to exclude the current post in the listing. This could happen when ever you are including the tag of the current post also in the list of tags.

Now I have added an option in the widget to exclude the current post or page.

This option is also available even if you are using either the template tag or the shortcode

Moved caching logic to widget

I have cleaned up the logic which I was using to cache the DB queries used by the Plugin. If you are using the widget, then the output of the widget itself is cached. If for some reason, you don’t want to the widget to cache the queries you can disable it as well.

But if you are using the shortcode or the template tag, then you have to manually cache the output or the db queries.

Dev Time

This release took me about 3.5 hours of development time. You can find more details about the dev time tracking which I have recently started doing in a separate blog post.

Download

You can download the latest version of the Plugin from the Plugin’s home page.

Feedback

Try out the Plugin and if you have any comments or if you want to report any bugs, please leave a comment below.

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 .

 

Posted in Plugin Releases | Tagged , , | 1 Comment

Updates to my WordPress Plugins

Over the past week, I have updated nearly half of my Plugins. I thought of consolidating all them in a single post instead of writing separate post for each of them.

If I have fixed a bug or added a new feature, I call them as mandatory updates. If I have just added new translations, the those updates are optional. But it is recommend that you always update irrespective of whether they are mandatory or optional updates.

You can update all these Plugins from your WordPress dashboard or by manually downloading them from their homepage.

Try these updates and let me know if you face any issues.

Mandatory Updates

Easy Retweet

Easy ReTweet is a WordPress Plugin, which lets you add retweet or Tweet this buttons for your WordPress posts, together with the retweet count.

I updated this Plugin to v2.7. I fixed a bug and added new feature, so it is a mandatory update

The following are the major changes

  • Enabled custom bit.ly pro domains (Thanks to Michelle McGinnis for the patches)
  • Added Bulgarian translations
  • Added Lithuanian translations

Github Ribbon

Github Ribbon is a WordPress Plugin, which can be used to add Github ribbons to your website. The github ribbons can be configured either for the entire site or on a post by post basic.

I updated this Plugin to v0.4

The following are the major changes

  • Added CSS style to hide ribbon on printed pages

Posts by tag

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

I have updated this Plugin to v1.8.

The following are the major changes

  • Added support for displaying content (Thanks to rjune for the patch)

Twitter Avatar Reloaded

Twitter avatar reloaded Plugin adds a new field to the comment form to get the user’s Twitter username and stores it together with comments and using it replaces gravatar with twitter avatar when the comment is displayed.

I have updated the Plugin to to v1.0

The following are the major changes

  • Using transient api for storing cache
  • Also improve performance

Optional Updates

Geo mark

Geo Mark is a WordPress Plugin which will automatically locate Geo information in your WordPress posts using Yahoo Placemaker and YQL API’s.

I have updated this Plugin to v0.7

The following are the major changes

  • Added Bulgarian translations
  • Added Lithuanian translations

Post to Friendfeed

Post to FriendFeed is a WordPress Plugin which will allow you to post excerpts from your blog posts as a message in FriendFeed with images. By default FriendFeed posts them without images and this Plugin overcomes this issue.

I have updated this Plugin to v1.0.2

The following are the major changes

  • Added Bulgarian translations

Tweetback Helper

Tweetbacks Helper is a helper Plugin for Tweetbacks Plugin to help it detect more tweets.

I have updated this Plugin to v0.4

The following are the major changes

  • Added Bulgarian translations
  • Added Lithuanian translations
  • Added German translations

Posted in Plugin Releases | Tagged , , , , , , , , | 7 Comments

Updated 4 WordPress Plugins

Over the past week, I have updated 4 of my WordPress Plugins and thought of consolidating all of them in a single post instead of creating multiple posts.

Posts By Tag

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

I updated this Plugin to v1.7. It fixed a bug so it’s a mandatory update.

The following are the main changes

  • Added support for displaying post dates
  • Fixed a bug which was corrupting the loop.

Twitter Avatar Reloaded

Twitter avatar reloaded Plugin adds a new field to the comment form to get the user’s Twitter username and stores it together with comments and using it replaces gravatar with twitter avatar when the comment is displayed.

I updated this Plugin to v0.7. It is a mandatory update.

The following are the main changes

  • Added 4 template functions to display the comment authors Twitter id and profile url.

Bulk Delete

Bulk Delete is a WordPress Plugin which can be used to delete posts in bulk from selected categories or tags. This Plugin can also delete all drafts, post revisions or pages.

I updated this Plugin to v1.3. It is an optional update

The following are the main changes

  • Added German translations

Easy Retweet

Easy ReTweet is a WordPress Plugin, which lets you add retweet or Tweet this buttons for your WordPress posts, together with the retweet count.

I updated this Plugin to v2.4. It is an optional update

The following are the main changes

  • Added German translations

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.

Posted in Plugin Releases | Tagged , , , , , | 11 Comments

Posts by Tag WordPress Plugin now supports shortcodes

One of the most requested features for my Posts by Tag WordPress Plugin was the support for shortcodes. Finally I got some free time over the weekend and was able to implement it.

Shortcodes

In addition to supporting sidebar widgets and template tags, the Posts by Tag WordPress now also support shorcodes.

You can embed a list of posts from a set of tags by using the following shortcode anywhere in your post or page.

In addition to using the tags attribute, you can also use other attributes that are supported by the template tag. For the full list checkout the readme file or the Plugins homepage.

Ability to sort by title

In addition to the support for shortcodes, I have also added the ability to sort by post title in this release. You can choose to sort by title in the sidebar widget or specify in the $order_by param to the template tag or as an attribute to the shortcode.

Download

You can download the latest version of the Plugin from the Plugin’s homepage.

Feedback

Please keep the feedback coming and if you want me to add any new features or find a bug, please leave a comment.

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.

Posted in Plugin Releases | Tagged , , | 3 Comments

Ability to hide author name in Posts By Tag Plugin

Another day another update to one of my WordPress Plugins. 🙂

This time it is Posts By Tag Plugin. I have updated it to v0.6 and have added the ability to prevent the author name from getting displayed in the widget. Normally in single user blogs it doesn’t make much sense to display the author name (since all are going to be the same user).

In the new version, you have to ability to choose whether you want the author name to be displayed or not.

Screenshot

The following is the screenshot of the new widget admin area.

post-by-tags-wordpress-plugin

Download

You can download the latest version of the Plugin from the Plugin’s homepage.

Feedback

Please keep the feedback coming and if you want me to add any new features or find a bug, please leave a comment.

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.

Posted in Plugin Releases | Tagged , , | 1 Comment

Ability to sort posts, in Posts By Tag Plugin

I recently updated my Posts By Tag Plugin, to v 0.4

New Features

The main new feature of this update is that, now you have the option to choose the order in which the posts should be displayed in the widget. The credit for this feature goes entirely to Michael, because he is the one who code it. He sent me the modified file and I have just checked it into the Plugin’s SVN and modified the Readme file. (Can anyone expect more 😉 ) Thanks Michael.

Screenshot

The following is the screenshot of the widgets page where now you have to option to choose whether the posts should be displayed in ascending or descending order by date.

posts-by-tag-settings

Download

You can download the latest version of the Plugin from the Plugin’s homepage.

Feedback

Please keep the feedback coming and if you want me to add any new features or find a bug, please leave a comment.

Vote for the Plugin

If you have used this Plugin and like it, please vote it and help me win the WordPress Plugin competition.

Posted in Plugin Releases | Tagged , , | 2 Comments

Using WordPress built-in tag auto complete script in your Plugins

When I released my Posts By Tag WordPress Plugin, I promised to write a post explaining how to use the built-in auto complete tags script in WordPress, and so here is how you do it. 😉

jQuery Plugin

WordPress has a jQuery Plugin called suggest, which will do the heavy lifting for us. To use this Plugin, you have to first enqueue the script using the wp_enqueue_script() function

// Register hooks
add_action('admin_print_scripts', 'add_script');

/**
 * Add script to admin page
 */
function add_script() {
    // Build in tag auto complete script
    wp_enqueue_script( 'suggest' );
}

Once the script is included, you have to just call a method called suggest on your jQuery collection and everything else will be taken care for you.

<?php
/**
 * add script to admin page
 */
function add_script_config() {
?>

    <script type="text/javascript" >
    // Function to add auto suggest
    function setSuggest(id) {
        jQuery('#' + id).suggest("<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php?action=ajax-tag-search&tax=post_tag");
    }
    </script>
<?php
}
?>

If you want to support multiple tags, then you can use the following options.

  • multiple – to enable multiple tags to be entered, pass true
  • multipleSep – The separator symbol for multiple tags

so the code will be

<?php
/**
 * add script to admin page
 */
function add_script_config() {
?>

    <script type="text/javascript" >
    // Function to add auto suggest
    function setSuggest(id) {
        jQuery('#' + id).suggest("<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php?action=ajax-tag-search&tax=post_tag", {multiple:true, multipleSep: ","});
    }
    </script>
<?php
}
?>

You can also use this script to auto complete other custom taxonomies, which were introduced in WordPress 2.8. For that you have to change the tax parameter in the url. The following are the default taxonomies that are available.

  • post_tag
  • link_category
  • category

In addition to them you can also use your custom taxonomies.

So the complete code is

<?php
// Register hooks
add_action('admin_print_scripts', 'add_script');
add_action('admin_head', 'add_script_config');

/**
 * Add script to admin page
 */
function add_script() {
    // Build in tag auto complete script
    wp_enqueue_script( 'suggest' );
}

/**
 * add script to admin page
 */
function add_script_config() {
?>

    <script type="text/javascript" >
    // Function to add auto suggest
    function setSuggest(id) {
        jQuery('#' + id).suggest("<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php?action=ajax-tag-search&tax=post_tag", {multiple:true, multipleSep: ","});
    }
    </script>
<?php
}
?>


The only cavet to this method is that right now the admin-ajax.php file needs you to be logged in and therefore can only be used in admin pages. But in WordPress 2.9 even anonymous users can load admin-ajax.php file. If you need use auto tag completing in blog pages, then you may have to wait till 2.9 is released 🙂

Posted in WordPress | Tagged , , , | 26 Comments

Posts By Tag 0.3

Just a quick note, to let you all know that I have updated my Posts By Tag WordPress Plugin to version 0.3

Features

The following are the changes in the new version

Improvements to caching

Now the Plugin caches the entire HTML generated by the widget, not just the query which is used to retrieve posts. This should improve the performance of the Plugin and will reduce some mill-seconds of your page load time, if you have enabled caching.

Turkish Translation

The credit for this goes to Yakup Gövler. I have checked in the Turkish .po and .mo files, in this release.

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.

Update

You can download the latest version of the Plugin form its home page. It is an optional update and doesn’t change anything in the front-end.

Feedback

As usual, if you have any feedback, queries or questions, feel free and leave a comment.

Posted in Plugin Releases | Tagged , , | 4 Comments

Display posts from a set of tags in the sidebar

Recently I was looking for ways to display posts from a specific set of tags in the sidebar.

I preferred a sidebar widget rather than making changes directly to the theme files, because if I am using a widget I don’t need to remember to make the change again when choosing a different theme.

A quick search didn’t yield any results which made me to write my own Plugin and thus the Posts By Tag WordPress Plugin was born.

Features

Posts By Tag Plugin provides a sidebar widget (using the new Widget API provided in WordPress 2.8) 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.

Caching

The Plugins 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.

Screenshot

Tag Posts Widget Settings

Download

You can download the Plugin from the Plugin’s home page. After downloading the zip file, extract it and upload the contents to the wp-content directory. Activate the Plugin from the Plugins page and you should see a new widget called “Tag Posts” in the widgets pages.

Feedback

As usual try out the Plugin and do let me know if you have any feedback, queries or comments.

PS: I am using the built-in tags auto-complete script used in the Write Post page. I will write a separate post explaining how to integrate tags auto-complete script in your Plugins.

Posted in Plugin Releases | Tagged , , , | 5 Comments