Provide a widget to show the hot tags of your recent posts.

Download

ChangeLog

What's Tag?

Tag is simply a word you can use to describe something, with WordPress, 'something' will be your posts or pages. It's very easy to use, think this way, if you want to google your post, what keywords should you use, that's it.

Why 'Recent Tags'?

Giving an example:

Olympics were very hot about a month ago, and we might write many posts about this topic, then 'Olympics' was a very hot tag. But Olympics would not always the hot spot, right? It's gone, and we might talk Elections now, so how to let the visitors get this, get what you're talking about now?

Recent Tags! That's the simplest way.


How to define 'Recent' and something you should know?

'Recent' is a problem? Yep, actually it is.  Recent tags might be tags used in some recent posts, or it might be the tags used in some recent days, strictly speaking, they're different, but most of the time, the difference can be very small. The point is when you see the tags, you do tell it is the 'recent' ones.

For performance considerations, this plugin will log your tags by days, that means it can tell you what and how many times a tag be used for a specific day, and what the hot tags in some recent days.

But for most of us, we don't write posts very day, right?  So there's a problem here, if you ask hot tags in recent 2 days, you might get a empty box, as you didn't publish anything. To solve this problem, this plugin will still ask to show the hot tags in some recent posts, but the calculation method will be:

Giving an example, to show the hot tags in recent 20 posts, it will get the date of the 20th post first, and calculate the hot tags since that day.

Worry about performance?

It's possible to calculate the tag stat directly through wordpress tables, but the server usage  will be extremely high, so this plugin creates a table in your database to track your tags by day. You can treat these data as some pre-calculation, if you're not publishing posts every minute and every post gets lots of tags, I don't think you should worry about this table.

Also, I think you may use the WP Widget Cache to cache the widget output

Bookmark and Share

Related stories from top sites:

  • AdSense: The (Weak) Elephant in the Room

    Sep 1st, 2008 - ReadWriteWeb

    A few years ago, we spoke of the "AdSense Economy." It was so simple. Create a website, slap on an AdSense widget, and voila: "Insta-biz." Wow! Who knew business could be so simple? AdSense was proof of Google's genius...

  • paidContent.org - Google Chrome Ads Go From YouTube To Your Tube

    Sep 1st, 2008 - Washington Post

    After backing out of a planned TV ad campaign during the Olympics broadcast last summer, the normally TV-shy Google (NSDQ: GOOG) is ready to go primetime to promote its Chrome web browser, WSJ reports...

  • Android 1.5 available for download on developer phone

    Sep 1st, 2008 - TG Daily

    Mountain View (CA) ? Google released its Android 1.5 Software Developers Kit today. If you already have the developer version of the T-Mobile G1 Google Android device...

  • mocoNews - Severance Costs Force Motorola To Record $229 Million ...

    Sep 1st, 2008 - Washington Post

    Motorola (NYSE: MOT) said today that it will take an additional pre-tax charge of about $110 million, relating to severance costs associated with the elimination of 2,800 jobs, according to a document filed with the SEC...

  • WP Widget Cache For WordPress

    Sep 1st, 2008

    A high-performance cache plugin for WordPress, and a plus for WP-Cache or WP Super Cache ! Download ChangeLog Why we need this WP Widget Cache? WP Widget Cache can cache the output of your blog widgets...

More stories ...
  1. M.

    Hello!
    Your plugin “WP Recent Tags For WordPress” is great, I find it really simple and useful, and I am using it in a blog. I was wondering if there is a way to display the tag list not in the sidebar, but below the header of the blog (that is: not using it as a widget, but as a function).
    Sorry if this is a stupid question, but I am quite new to WP!
    ^_^

  2. Hi M.,

    If you know “function”, I think you might have some basic knowledge about php, than it’ll be easy.

    Go line 216 of recent-tags.php, it’s a function ‘generate_wrt_widget’, that’s to generate the widget output.

    If you need more help, just tell me:)

  3. M.

    Thank you for your answer!
    I managed to output the list where I need using these two lines:

    generate_wrt_widget();
    ?>

    Now, to customize the output code, I will copy the generate_wrt_widget code to a custom function inside the class, not to lose the widget. This should not be difficult.
    If you want (and if eveything works..), I can send you the modified widget, maybe to include this option in your next release!

    Thank you again!
    M.

  4. M.

    Finally I decided not to tweak the plugin. In this way my code will be compatible with your future updates. I managed to modify the css of my template to adapt to the original output of the widget. I use it in this way in my header:

    $recents = new RecentTags;
    $recents->generate_wrt_widget(array(’before_widget’ => ”, ‘before_title’ => ”, ‘after_title’ => ”));

    Again, thank you for making this plugin available.
    M.

  5. andrew, l also sent u a mail about ur blog, l would like to know what plugins u used in this wordpress blugin. can u pls provide it?

  6. Rajesh

    extra tag is printing if cloud is blank. i corrected it. Just move echo “”; to top.

  7. Rajesh

    HI Andrew,
    I have problem with recent tags. I am using rss feeds to my testing blog. But tags are not updating. Even after 15 posts there is no tags in table or in page. I couldn’t find the reason. Can you please help me. I just wanted to get confirmation whether Topic widget on your site is similar to this plug or not?.

    Rajesh

  8. Rajesh

    Hi Andrew,
    Can you please revert on my query?

    Rajesh

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.