Custom Field Widgets Plugin

(Update 2008-05-01: This plugin does not work properly with any WordPress Version above version 2.3.3. Until I can figure out the code changes, I can't support it for version 2.5 or higher.)

Download Custom Field Widgets version 1.2 (2007-12-09)

The Custom Field Widgets plugin lets you create a widget that will extract the key and value pairs from custom fields on specific pages and posts and display it only on those pages or posts. Each widget also includes before and after fields for text you may want to show on all pages and posts sitewide.

The plugin was tested on WordPress version 2.3.1, but it should work on any prior versions that include widget support.

Version 1.2 Changes

  • Leaving the title area blank will now only give you a widget with the widget information, without any CSS styling for the title (like the widget titles in my current theme).
  • You can choose to display or not to display the most recent post's custom field on the home page. The sitewide text will continue to display regardless of your choice.

Features

  • A single widget contains the title, sitewide text before the custom field key, the custom field key, and sitewide text after the custom field key. The text before and after, if not left blank, will display on all pages and posts. If the custom field key matches a custom field key on any page or post, the custom field value will be extracted and displayed only on those pages or posts.
  • If all three items are left blank, the widget will not be displayed. If the only item containing text is the custom field key and a page/post does not contain that key, or the value is blank, the widget will not be displayed
  • HTML tags are not stripped in the "Sitewide Text" items, allowing you to include things like divisions, ordered lists, unordered lists, and links.

Limitations

  • Since HTML tags are not stripped in the "Sitewide Text" items, care are should be taken to use valid markup in those items because it will affect the output of the rest of the page (leaving out a closing tag, for example).
  • PHP code is not supported in this plugin. There are other plugins that contain that functionality. See the "Related Links" in the right sidebar.
  • Only 9 instances of this widget are supported. Reuse titles and key names as often as possible because each key name requires a different widget in the presentation/widgets section of the WordPress administration.

Live Examples

In the "Recommended Links" widget in the left sidebar, all links except the last link are sitewide. The last link is specific to this page only. The "Related Links" in the right sidebar are specific to this page only.

The "More Links" widget in the right sidebar of "SocialSpark, PayPerPost, RealRank, Google and You" are specific to that post.

Screenshots

These are screenshots of everything used for this page:

First Custom Field Widget Second Custom Field Widget Custom Fields in Editor

Installation

  1. Upload "custom-field-widgets" to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins'" menu in WordPress.

Upgrade

  1. Follow the installation steps and overwrite the old files.
  2. If you want to show the most recent custom field on the home page, you have to select the item on the widget that says "Show Latest Custom Field Contents On Home (Index) Page".
  3. Check each existing custom field widget and click on "Save Changes" on the Presentation/Widgets administration page.

Usage

  1. No template editing is required (unless your theme doesn't support widgets).
  2. Place and edit widgets through the "Presentation/Widgets" administration page in WordPress.
  3. Click on "Save Changes" on the Presentation/Widgets administration page.

Support

Support is handled through comments on this page.

Download Custom Field Widgets version 1.2 (2007-12-09)

35 Comments

  1. Adrian says:

    Superb. Would be great to limit its display to single post pages.

  2. Aaron from HR Software says:

    Do you have any plans on making it 2.5.1 compatible yet?

    My latest blog post: Going “Green” – Small Business Can Do Its Part

  3. Simon from Free Vector Art says:

    Useful plug-in. I would like to give it a test drive, however, we are running 2.5.1…I appreciate the effort and time this sort of thing takes though. Cheers.

    My latest blog post: Free Terminator Vector Image

  4. vick says:

    i should try this widget, thanks for share

    My latest blog post: Free Traffic And Backlink From Blog Directories

  5. Mark from tool vinyl says:

    I wish I had the skill to take something like this on…but life didn't bless me with a mind capable of programming :)

    My latest blog post: Tool – Opiate Review

  6. oyun says:

    Thanks you for its plugin, I love Wordpress :=)

  7. As someone who never had the talent to finish a plugin all I can say is <3

    My latest blog post: SEO Challenge – Learn SEO!

  8. [...] Vortex – Custom Fields Widgets plug-in and Nursing School in the Philippines Lamach Web Site Design Blog Related [...]

  9. Bill from Green Lighting says:

    Thank you very much…you never fail to impress!!

    My latest blog post: Fluorescent Emergency Lighting Ballasts

  10. Terry from Michigan SEO says:

    an oldie but a goodie…thanks rt

    My latest blog post: iPod Repair and iPhone Repair by The Pod Drop

  11. Tony from 250CC go karts says:

    This is a great one. Thanks for sharing it with us all.

  12. kevin from Web hosting Ireland. says:

    Do the links change with new posts added in the widget or does it just add new one to list.

  13. Andy Base says:

    Is there any way I can use these plugins to deny do-following for some of the sites that are of low value? I'd like to do-follow only the sites that are of high quality and automatically blacklist those known to be untrusted.

  14. Justin from Becoming a sheriff says:

    Simple, efficient and useful, this is very well done RT!

  15. joan from weightloss says:

    Does this widget help with seo or hurt it in any way. If links change all the time does that effect search engine ranks.

  16. hair care says:

    I have been reading about widgets and how they can help your website, but I am still not sure how.

    I have used Dapper.net to make feeds and widgets, but I haven't as of yet seen any benefits from the widgets.

  17. Mike from Clean Red Widgets says:

    Hi RT, is there a chance of an update for latest WP versions?
    Sorry I can't help with the code.

  18. CharlesH from WindowsRegistryRepair says:

    Thanks a lot for this plugin, and I'm looking forward to the upgrade as well. Any news?

  19. Brad from officesupplies says:

    Nice plug-in. I can see from your blog that you remain fairly busy, but is there a chance that this plug-in will ever work with WP 2.6? I couldn't get it to work in the least build.

    Thanks for your hard work on this.

    BJ

  20. I've decided that I'm not going to be working on this plugin ever again. At least, not until I find that I need to use it for something. I don't want to leave anyone hanging with empty promises.

  21. [...] Custom Field Widgets Plugin … one of many; I'm going to munge through this whole type to find what will fit a very specific need. More l8r [...]

  22. But what you have developed works well. IF you continue it might do better.
    Keep up the good work mate.

  23. Marcin from Tech Gadgets says:

    Nice plugin but I wish it support PHP code.

  24. Rome from NDS Games says:

    Hi RT, I found this page while looking at your sidebar. Hope you could work on this. :)

  25. Kaiser from Obama Convention Speech says:

    I plan on starting a political blog soon as i was looking for a plugin like this. I was searching Wordpress.org for hours and found many useful plugins but none like this one. Thanks!

  26. Tom from Cheap dsl. says:

    Interesting plugin not sure what i would use it for. I know you even said you will not work on it untill you figure out a need for it. I wonder if it would be good for news feed blog or something that updates alot.

  27. Thanks for this plugins and for sharing this with us.

    any upgrades yet?

  28. Martin from holy war game says:

    I will try this plugin … it seems that it is very cool …

  29. barry from barrys blog says:

    Wow, that sounds like a pretty cool plugin. Too bad it doesnt support wp 2.7.

  30. thank you very much this is the plugin i was searching for!

  31. Now I understand why after downloading this plugin it wouldnt work for my new wordpress. It took me about 30 minutes in searching google to find this out.

    Thanks

Leave a Reply

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

Anti-Spam Protection by WP-SpamFree