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:
Installation
- Upload "custom-field-widgets" to the "/wp-content/plugins/" directory.
- Activate the plugin through the "Plugins'" menu in WordPress.
Upgrade
- Follow the installation steps and overwrite the old files.
- 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".
- Check each existing custom field widget and click on "Save Changes" on the Presentation/Widgets administration page.
Usage
- No template editing is required (unless your theme doesn't support widgets).
- Place and edit widgets through the "Presentation/Widgets" administration page in WordPress.
- Click on "Save Changes" on the Presentation/Widgets administration page.
Support
Support is handled through comments on this page.



Superb. Would be great to limit its display to single post pages.
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
What I'd really like to do is give it to someone who could make it more thorough. Like having an admin page that shows which pages have custom fields on them.
I don't know if I would want to take that on myself, but I'll add it to my wishful thinking list
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
i should try this widget, thanks for share
My latest blog post: Free Traffic And Backlink From Blog Directories
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
Thanks you for its plugin, I love Wordpress :=)
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!
[...] Vortex – Custom Fields Widgets plug-in and Nursing School in the Philippines Lamach Web Site Design Blog Related [...]
Thank you very much…you never fail to impress!!
My latest blog post: Fluorescent Emergency Lighting Ballasts
an oldie but a goodie…thanks rt
My latest blog post: iPod Repair and iPhone Repair by The Pod Drop
This is a great one. Thanks for sharing it with us all.
Do the links change with new posts added in the widget or does it just add new one to list.
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.
Simple, efficient and useful, this is very well done RT!
Does this widget help with seo or hurt it in any way. If links change all the time does that effect search engine ranks.
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.
Hi RT, is there a chance of an update for latest WP versions?
Sorry I can't help with the code.
When I put out my personal fires and get done with another coding project, I'll take another look at it. I'm sure I can make it work, but it needs at least one more feature to make it great.
Thanks a lot for this plugin, and I'm looking forward to the upgrade as well. Any news?
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
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.
[...] 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 [...]
But what you have developed works well. IF you continue it might do better.
Keep up the good work mate.
Nice plugin but I wish it support PHP code.
Hi RT, I found this page while looking at your sidebar. Hope you could work on this.
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!
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.
Thanks for this plugins and for sharing this with us.
any upgrades yet?
I will try this plugin … it seems that it is very cool …
thank you for nice plugin
Wow, that sounds like a pretty cool plugin. Too bad it doesnt support wp 2.7.
thank you very much this is the plugin i was searching for!
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