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.

Usage

  1. Download, upload, activate.
  2. Add the following code somewhere in The Loop.
<?php
if (function_exists('postinfo')) {
  postinfo();
}
?>

Changelog

1.6

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

1.5

  • Added CSS sprite to reduce image flash.

1.4

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

1.3

  • Altered link for comments on single post entries

1.2

  • Added graceful degradation for users without JS

1.1

  • 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

1.0

  • Initial release

Considerations

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.

117 thoughts on “WordPress Post Information Plugin

  1. Rob

    Nice plugin. It looks really good when scripting is on but unfortunately it doesn’t degrade gracefully when it is off. Is it possible to make it cater for users with no javascript?

    Reply
  2. Can

    A wonderful plugin. Except that a newbie like me doesn’t know what you mean by adding an option page. Did you mean add another file, like postinfo.php? I’m using the Unwakeable theme, and it has an options folder. Put this postinfo.php inside this folder? I’m so confused. :(

    Reply
  3. Pingback: WordPress Plugins Database » Plugin Details » Post Information

  4. Pingback: Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 11/6

  5. Pingback: 最新(11月)wordpress插件汇总(plugin) | 第九城市

  6. Pingback: BlogBroker » WordPress Plugin Releases for 11/6

  7. Pingback: WordPress Plugins - WordPress 插件列表 11月6日 - WordPressCHINA - WordPress中文化

  8. math

    very nice plugin, look great and useful, but for me the probleme is, after installing “post information”, my website needs 25 secs more to load. So, I can’t use it, :(

    Reply
  9. L

    Hi Chris,

    Thanks for this plugin, I’ve activated it on my site and also pasted the code into The Loop. Can’t seem to find the toggle effect (do I need to add another piece of code somewhere else?)

    I’m a newbie, sorry for all the questions :)

    Reply
  10. Chris Poteet Post author

    @L: I see the “Post Information” link in your loop. Put the PHP function right where your comments link is underneath the post (the plugin has a link to the comments).

    Reply
  11. math

    thx for answer. I really like your plugin and would like use it. I tried saveral times. But, whether I activate the plugin, make the loading way longer. too long, I can’t let it activate. any idea, where it can be from ?

    Reply
  12. Pingback: Post Information_Wordpress plugin

  13. Pingback: WordPress Plugins for Blog Layout, Formating, and CSS Designs « Moch1503’s Weblog

  14. Matt

    Thanks, got it to work after further reading. I guess i thought this would hide the existing meta, but doesn’t do that for my site template.

    Reply
  15. Pingback: WordPress Plugin Releases - Blog Tipper - Come here for great tips

  16. ovidiu

    jsut soem suggestions for improvement if you’re interested:
    what about an options page where yo ucoudl select what info you want displayed in the post meta info?
    i.e. I have a blog where only I blog and I have therefore disabled the author archives and the author pages => they redirect to the homepage, so I wouldn’t want to displaz that particular info..

    Reply
  17. ovidiu

    sorry just noticed that was #1 on your to do list, but why woudl that be obsolete?
     
    To Do

    Add an option page to choose the toggle effect and select information to be displayed. (Obselete)

    Reply
  18. ovidiu

    cool, no problem I was jsut confused why you marked it as obsolete. I thought there might be an option I had not found :-)
     
    still a very cool plugin

    Reply
  19. Chris Poteet Post author

    @ovidiu: It’s because it’s on a single post page, and it doesn’t recognize that function there.  You could use some logic to check whether it’s a single post and if so don’t display the code.  It would look something like:
    if (is_single()) { // don’t display }
    else { // display }

    Reply
  20. ovidiu

    thx, I understand your answer, but am confused as  Ithought this plugin could be used on single posts? I mean is this page here not a post? Could you explain where its supposed to be used?
    I.e. on a homepage inside the loop or where else could I use this plugin?

    Reply
  21. ovidiu

    thanks a lot. I really appreciate this, especially given the fact, that you were not going to update this plugin any further :-) works now just fine. Btw. you forgot to change the version number inside the plugin so I guess wordpress updates won’t be picking up this update!?
    I just changed your plugin to completely skip the comments stuff if its on a single page :-)

    Reply
  22. ovidiu

    just wanted to let you know I made some modifications to your plugin so that it also outputs some information of these plugins: http://lesterchan.net/portfolio/programming/

    you can check it out here: http://www.die-kellerkinder.eu/2008/08/formula-returns/
    I inserted email this post, print this post and rate this post, but I am still looking for an icon for the rate this post stuff :-)

    if you want I can share the mods when I am finished, they still need a little polishing, and all echo stuff should be enclosed in IF statements to check if those plugin sare activated.

    Reply
  23. Pingback: The Power of WordPress and jQuery: 30+ Useful Plugins & Tutorials

  24. Pingback: The Power of WordPress and jQuery: 25+ Useful Plugins & Tutorials | @article @lbum

  25. Pingback: Free WordPress and jQuery: 25+ Useful Plugins & Tutorials | guidesigner.com

  26. Pingback: Free WordPress and jQuery: 25+ Useful Plugins & Tutorials | designersmantra.com

  27. Mike

    Great plugin.

    Only thing I noticed that bugs me, and probably is IE’s fault, not yours:

    The list in IE inherits the default styling on an unordered list. So, if you’ve styled your UL with a custom bullet, etc, it shows in front of the fam fam fam icons in the plugin.

    Works fine in every other browser I’ve tried, just not in IE.

    Not looking for a solution, just pointing it out.

    Thanks for the great plugin.

    Reply
  28. Pingback: The Power of WordPress and jQuery: 25+ Useful Plugins & Tutorials | cyooh.com

  29. Pingback: The Power of WordPress and jQuery: 25+ Useful Plugins & Tutorials | Webmaster Tips

  30. GimliGlider

    Damn! Everything worked in my site but I removed it for the only reason that the .png image for Words didn’t show up. I manually verified that the required png file words.png came with the plugin and was installed on the webserver but no luck.

    Also went into the CSS file to see if the image was properly linked. Yes it was properly linked but the image didn’t show up.

    Then I used Windows Magnifier to see if the icon was hiding somewhere. Yes it was! It was hiding behind the ‘Author’ icon.

    Now Chris, how can I get that disobedient icon down and put him where he should be? If you want, i can reenable the plugin in my website and show it to you.

    I checked the tick box next to “Notify me of following comments via email”. So Chris, if u’re willing to help, post a comment here. or email me. You already have my email address. Please keep it privated.

    Thanks and wishing u all the best with the new job

    Reply
  31. GimliGlider

    hey chris that was nicely executed. Don’t know of proper words to express my gratitude with. Where the hell is the donate button in your site? LOL seriously???

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>