Simple Fields
Powerful fields plugin for WordPress
- Download plugin
- Support Forum at WordPress.org
Donate
I develop this plugin on my spare time. You could support me by donating.
Simple Fields for WordPress let you add groups of fields to you edit post page You can use it as a complement to – or as a replacement – for WordPress own custom fields.
Simple Fields turns WordPress into an even more powerful Content Management System (CMS).
For a quick intro please check out my introductory blogpost ”Simple Fields is WordPress Custom Fields on Steroids”.
Features
- Add textboxes, text areas, checkboxes, radio buttons, dropdowns, and file browser to the post admin area
- Much easier for the user than regular custom fields
- Group fields together into logical groups. For example combine File + Name + Description into a an Attachments-group.
- Use ”repeatable” field groups to add many any amount of field groups to a single post – great for images or attachments!
- Use drag and drop to change order of added repeatable groups
- Different post types can use different field groups – actually you can even use different field groups even for same post type
- Nice GUI that looks like the rest of WordPress
Screenshots


Seems like some of the code above got butchered by the comment system,
the tag should actually be: http://pastebin.com/yu9VNa0W
Cheers,
Joey
Thanks for helping out. And sorry for the comment system trashing code. I really got to fix that.. :/
Hi Pär, very nice plugin, I use it extensibly on mi site. Is there any chance to have a date field that stores an unix timestamp like this
http://matth.eu/wordpress-date-field-plugin
It will be very useful !!
Kindest regards,
gb
Indeed there is! It’s on my todo list, but I don’t know when I will have the time to finish it. But please hang in there!
Hi Pär, very nice plugin, I use it extensibly on mi site. Is there any chance to have a date field that stores an unix timestamp like this
http://matth.eu/wordpress-date-field-plugin
It will be very useful !!
Kindest regards,
gb
[...] tutorial shows how to get content from repeatable field groups for WordPress plugin Simple fields. It will not cover creating of fields because process is pretty streight forward, so you should [...]
Hello Pär, loving the plugin!
I`m still a WordPress and PHP noob, but is it possible to add multiple groups of fields to a single page or post? To use the screenshots above that you made as examples, if I decide to make a new post with a slideshow, is it possible to add both Attachments and Slideshow groups of fields to the post? I suspect it isn`t, but I just want to make sure.
Thanks for all your great work!
Somewhat embarrassing, since the solution was so obvious, but I hear the best questions are the ones one can answer themselves.
So I figured out that it`s indeed possible; provided someone else has the same question: they just need to be added from within the Post Connector details.
Great plugin!
I’m having real trouble with the image / file selector. The regular uploader gui goes up, I upload my file, I press ”use this”, but then.. nothing.
Do you use any special libs that wordpress doesnt that I should talk to my host about? Or am I just not 3117 enough?
Hm.. It should work. It does for me anyway!
If you trust me you can send me login to the site so I can take a look at it. If you trust a fellow swedish that is..
(It can – of course – also be due to the fact that you’re not cool enough. I should write that down in the FAQ…)
Great Plugin! However how would I go about making text fields work with short codes? I guess I have to apply a filter but I’m not sure how. Please advice.
My code:
$team_email = simple_fields_get_post_value($related_post->ID, array(1, 1), true);
echo ”$team_email”;
How would I filter this to work with the shortcode I’ve put in the writepanel?
You should do something like this to make shortcodes work:
$content = …text from simple fields…;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
echo $content;
Tack! Tillbaka till kodbordet
Hey dude!
I wrote a few lines of code that could be helpful if using simple fields together with slideshow or whatever.
http://blogg.angrycreative.se/att-anvanda-simple-fields/
Hi there, If i could make a one suggestion. In the admin
area, when creating a simple field there are 2 things: 1. Name 2.
Type It would be maybe nice to have also ”Description field” which
would then show up only in admin area telling webmaster a little
hint about what to put in that field. (Similar like when you show
custom field keys, right below name of custom field) Why, because
i’m not developing site for myself, and i think it would be useful.
For example if i have image field: Name: Thumbnail image Desc:
Thumbnail for article preview, must be 150x150px BR Vlado
Do you have an API for this plugin? So it can be included directly into a theme without having to present the UI to any WP users? This would be really useful for theme developers.
No API right now. But any theme developers that want this functionalty are welcome to contact me. If it turns out there is an interest I might consider it.
There seems to be a small problem.
I have create a repeatable field. In the post, when I try to order them by dragging the field up or down, the vertical browser starts increasing and I can see a lot of blank space being created below and the field is not dragged.
Can’t figure out that what could be wrong.
First of all thank you for this great plugin!
All of the tutorials are clear and easy to understand but I have a problem with something that wasn’t described in any of them.
I’m trying to add icons depending on the file type uploaded through simple fields, but have no idea how to get mime type. Do you have any idea how to check if a file added to a post via plugin is pdf, doc or other format?
I know how to do it with attachment, following this tutorial http://www.tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/ but still no idea how to do it with simple fields.
Adding a field for jquery datepicker and colorpicker would be a great option. Let me know if I can fund these additions. Thanks.
Hi Pär
Thanks a lot for this great plugin!
I took the liberty of creating an additional plugin to slightly change the default edit view, removing the dependency on external jQuery UI files and bypassing an issue with Custom Field Template: https://github.com/backflip/Wordpress-Simple-Fields-Prettify
Please tell me if you are ok with this.
- Thomas
This plugin really saved me… Except for one thing.
When I try to upload an image, I don’t see any ”use this” button, or anything that points to a way to actually use the file.
It’s really late, and I’ve been working forever, so I might be missing something.. Any help would be appreciated.
The plug in overall is really killer though.
Stu
After firebuging a bit, I noticed that the JavaScript in the media uploader was hiding (display:none) the ”use as featured image” link… It still didn;t work, but I can’t figure out what it’s doing that…
Stu
Hello Pär,
I am using the plugin..but not getting the way, how to show the values of ‘select’ tags and the images.
Like I want to show value of selected city and uploaded image on the front-end.
Please help me…how to show that.
Thanks!
I am using this code to show the selected value or input value:
$selected_value=”;$selected_value = get_post_meta(get_the_id(), ”_simple_fields_fieldGroupID_1_fieldID_2_numInSet_0″, true); echo ”City: ”.$selected_value.”";
but its showing ” City: dropdown_num_3″ on front-end
Hello to all!!
I am trying to use the upload field, i click to ”select file”, a popup opens, then i select the file to be uploaded, but after that nothing happens… the file has been uploaded correctly (i checked the file in the upload folder) but something goes wrong, it does’nt appears in the media list, nothing is inserted in the ”WP_POSTS” db table…
Someone can help me?
Thank you
Anyway, thank you Pär for the awesome plugin!!!
Hi there!
First of all thank you for this great piece of code!
I’d just like to know one thing though – Is it possible to use multiple Field groups on one(!) page?
Like, one Field group for a slideshow (Repeatable) and another one for some theme options or another header visual for instance.
Thanks!
Yes, you can use multiple field groups on a single page. Just create your field groups and then connect all of them to a post connector and use that connector on a post and – tada!
Good luck!
Hey Pär,
thanks for your reply!
Well, yeah, maybe it was just too obvious to connect all the field groups to a post connector – Makes sense of course!
Works like a charm now. Your plugin rocks! Again, thank you so much.
Cheers,
Dan
Hi Pär
Your plugin is ideal for our purpose.
I just need to find out if it is possible to manually edit the meta key names to something more suitable for us?
Thank you.
Hylton
[...] Simple Fields enhances WordPress to a more powerful content management system. Its features include adding of text area, drop downs, radio buttons, check boxes, and file browser to the post admin area. This allows easier usage for the users compared to regular custom fields. [...]
Hej!
Jag hoppas du kan lösa det här problemet snart, många som väntar…
http://wordpress.org/support/topic/plugin-simple-fields-how-to-change-meta-key-name
Mvh Jens
Hi,
Do you maybe have some expirience on how to show custom fields with plugin shopp?
BR
Vlado
Hi,
Let me ask a question in a different way
Shopp plugin use custom post types in some different way, so when i create custom fields with your plugin, i cannot connect them with shopp post-type.
Post type is: shopp_page_shopp-products, but i dont see it when i create a connector.
Is there a way to create connector in functions.php ?
Thanks in advanced
BR
Vlado
Great plugin, just got it working on my site and its exactly what we were looking for but… as always there is a feature that would be great to have
For the repeatable field groups would it be possible to add a ”key” field so that you can give each instance of a field group a unique name and then when you return back an array all all the repeatable field groups, you could pull out the correct instance by the key. The reason being that we have multiple blocks of content on a page (not displayed in a sequential list) that all have the same required fields but when you add an field group via the repeater it is added to the top of the list and all the ids of the previous field groups increase by one, which is fine as long as you then move the new field group instance to the bottom but it just leaves room for things to get muddled up. Anyway a key would avoid possible mishaps!
Thanks Rob
Hey everyone !
Am using simple fields plugin for some time now, it is working fine, however i noticed a little problem.
I set up a specific select file for image upload, it is working allright when i go through image library and use, for exemple the images available on first page.
HOWEVER, when i use the ”search” function to look for a specific image, when i click on insertion button, the image does not go to custom field but straight to the main content area of the article :/
Is it a bug ? Something that could be corrected ? If so, how … ? : )
Thanks a lot,
Christophe
Hello! Thank you for this amazing plugin!
I noted 9 months ago you stated at wordpress support you would stop using googlecode for jquery ui. It seems to still be being used.
As of this week it has been totally killing my dashboard again with 15 second stalls.
Could I beseech you to please pretty please make the switch?
Thank you!
sam
This is how to use simplefields for download links
<?php $selected_values = simple_fields_get_post_group_values(get_the_id(), "simplefields group name", false,2);
foreach($selected_values as $value){;
echo '’ .( $value[1] ). ”;
echo ‘‘.( $value[3] ).’‘;
}?>
what’s going on here?
This is a simplefields repeatable group which consists of a download title such as ”download our brochure below”, a download title which is the actual link text and a link to the attachment.
the 3 values are the meta data which simple fields generates.
value 1 is a text field
value 2 is a file upload
value 3 is a text field
Additionally, separate from simplefields, you can add file icons by using css code similar to this
a[href$='.doc'], a[href$='.DOC'], a[href$='.docx'], a[href$='.DOCX'] {
background:transparent url(/images/MIcrosoft-icon.png) center left no-repeat;
display:inline-block;
padding-left:25px;
line-height:18px;
}
This will add icons next to your links without the need for javascript.
I get alot of resources from the internet and I am extremely grateful for those who write and share code. I hope this helps others.
sorry it has stripped my code, see this post
http://wordpress.org/support/topic/plugin-simple-fields-to-help-others-with-using-simplefields?replies=2
Is there a ”update_post_meta()”-equivalent to insert/update simple fields?
Hi,
The bug pointed out on this WP forum post is still there:
http://wordpress.org/support/topic/tintmce-not-working?replies=2
The bug causes JS errors which break the drag and drop re-ordering of fields. Could this be fixed in the plugin so that we don’t have to edit the plugin code please?
Thanks!
Is there a way, to enable picking past dates at the date-field?
That would help me a lot. Great plugin by the way — exept the ugly datepicker. Shall I send you german language files?
Hello is it possible to get the search results in xml (because i need the response data in xml as well)
I’m going to hire someone to code an app, and he wrote.
”But I will need a web service that will provide response based on the search query request from mobile. Response data can be either in xml or json.”
Love your plugin and use it on almost every website I build!
However, there seems to be some problem that might be related to version 3.3 of WordPress:
I have a Field Group with a ”File” type field. But when I’m trying to select a file from the Media Library the button to ”Select Image” doesn’t show?
Thanks in advance!
//Dan
Dan,
I think I’m seeing the same thing. I’ve posted a bug report on the WordPress support forums, too, along with a link to a screen grab:
http://wordpress.org/support/topic/plugin-simple-fields-cant-select-images-from-library
Is that what you’re seeing?
charlie
Yeah, that’s it!
//Dan
Hey Dan,
I think I fixed it by adding this code to the top of the Simple Fields plugin’s ”functions_posts.php” file:
add_filter( ‘get_media_item_args’, ‘force_send’ );
function force_send($args) {
$args['send'] = true;
return $args;
}
If the code gets stripped out of this reply, just look at the code I posted the WordPress support forum:
http://wordpress.org/support/topic/plugin-simple-fields-cant-select-images-from-library
Thanks for this. At first it seemed like it solved the issue, as the ”Select” button was back.
But now, when I try to select a picture it first opens the media lightbox as a new page (at not as a lightbox at all). When I navigate to a picture and click ”Select” I get a blank white page…
Anybody else having this issue?
This fix doesnt work for me – I still have the same problem