WordPress Post Information Plugin

This is my first contribution to the WP community! It is a start, and I hope time permitting to advance the features in this plugin. This plugin aims to consolidate your post information into a collapsible panel (using jQuery) that can save space on your page.

You can see what it looks like below on this post, and you can test the interaction from the main page.


  1. Download, upload, activate.
  2. Add the following code somewhere in The Loop.
if (function_exists('postinfo')) {



  • Fixed word count when using the read more command (was giving word count for excerpt not post).


  • Added CSS sprite to reduce image flash.


  • Added JavaScript callback to designate graphically box can be minimized
  • Changed text for toggle to be more descriptive
  • Tweaked CSS


  • Altered link for comments on single post entries


  • Added graceful degradation for users without JS


  • Converted to jQuery from script.aculo.us (uses jQuery bundled with WordPress)
  • Added support for tags
  • Added extensive styling including the famous Fam Fam Silk Icons
  • Reorganized code


  • Initial release


I’ve noticed different styling results when using the function on single post pages and the loop on other pages. Be sure to test both for differences.

To Do

  1. Add an option page to choose the toggle effect and select information to be displayed. (Obselete)
  2. Add icons.
  3. Add ability to degrade for users w/o JS enabled.
  4. Clean up plugin code.

119 thoughts on “WordPress Post Information Plugin

  1. thanks so much chris. Just donated! I’m not rich so I couldn’t afford to donate a hundred bucks but why not have a beer on me? :-D Appreciate your hard work

  2. Hey Chris got a problem. You might have already noticed that I use the shortcode in each of my posts to minimize clutter in the main page and give the user an option to ‘read more’.

    Problem is: your plugin is counting words from the beginning of a post right till the end of the shortcode, and then it is not counting words from the rest of the post.

    Is there a way to fix it? Because if not, I’d have to either forget about using ‘more’ shortcode, remove them from all my posts, or remain happy with giving visitors wrong information.

    Hope you’d look into it. Thanks

  3. wow that was fast man! Just updated and now the words counter is showing accurate info even with the More shortcode inserted. Thanks! Really appreciate ur help :-D

  4. Hey Chris got a question, not a feature request or bug: If u haven’t noticed already, I don’t use tags in my site at all because I don’t really get the point. Is there a very easy way to get rid of the ‘Tags’ section in Post Information 1.6? I just tried deleting the code that starts with li.tags in .css file and then saw it gone for good but the space it occupied still remained. Here’s a screenshot of what I saw: twitpic.com/8ie96/full (please add http:// before the URL ’cause I can’t do it here cause if i do my comment will be likely detected as spam)

  5. how u doing chris? Hope everything’s fine with you. I was wondering…

    Instead of clicking, how about hovering? I was 99 percent successful in implementing that, believe it or not, by simply replacing ‘.click’ with ‘.hover’ in line 25 of the file post-information.php.

    the problem with the rest 1% is that when i ‘hover’ out, the post information window didn’t close. I had to hover on it again to make it close.

    So my question is: I fairly believe it’s nothing but a few more words I would need to add or replace a bit above or below line 25. Can you give me a hint?

    Thanks once again :P

  6. I did add the code inside thesis:

    function thesis_loop_posts() {
    if (have_posts()) {
    if (function_exists(‘postinfo’)) {

    And it works :)

  7. Pingback: My Blog
  8. Pingback: prueba 2 : My Blog
  9. I’m loving this plugin because not only it’s helpful for the visitors and authors of the site but also it adds that aesthetic beauty too. Well, I’m not so lucky with it yet on my site… it just come out all broken up and not showing good at all. Please take a look at http://www.xpozeet.com. Maybe you can give me some advice on how to fix it. Thanks for such a nice plug.

    1. @Ron: Thanks for the kind words. I looked, and you have a lot of JS being loaded including different libraries (Mootools, jQuery). My code runs in compatibility mode, but I’d guess something is conflicting with another JS plugin. Try and remove all and re-add until you find out which one breaks everything.

  10. @ Chris: The theme I’m using actually came embedded with a set of JS so it’s gonna be hard to determine what’s causing this because i have very little knowledge in that department.
    I just went to your Contact link to make an offer to you to help me fix it but I realize that you are no longer taking on WP/Web Design. Well, I’ll deactivate it for now, maybe someone will come along and know a fix. Thanks for the plug and response.

  11. Very nice thank you took me a while to find the loop but it new it couldent hide forever lol
    Thank You
    Great Plugin

  12. Pingback: Post Information
  13. Pingback: Post Information
    1. @Phillip: In your theme it starts with something that looks like this in your theme’s files.
      php if ( have_posts() ) : while ( have_posts() ) : the_post();
      Check out this about the Loop on the WordPress Codex.

  14. Hi, I’ve installed your plugin in my website, but when I click on the icon the div opens but then it hides in less than a second.

    This is my website – http://www.lesenfantsterribles.org/ – if you look at any posts, the result is every time the same. The content is show but when the div reaches the bottom its close again.

    Could you help me?

    Thanks, Let

    1. You’ve got a bunch of JavaScript plugins. I’m going to assume one of them is colliding in some way with mine. Try deactivating one by one the plugins that use jQuery to see where the collision is.

Comments are closed.