Simple Fields for WordPress let you add groups of fields to your edit posts page. It’s a more advanced and better alternative to the built in custom fields in WordPress.
Development version
If you want to try out the latest development version you can find the development version of Simple Fields at GitHub. There you can also submit bug reports and feature requests.
Simple Fields Features
- For a quick intro please check out my introductory blogpost “Simple Fields is WordPress Custom Fields on Steroids“.
- 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




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
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
I cannot open any of the tabs in my post page .. I just upgraded to WP 3.3.1 Is there something I need to do? Is there a update avail for this plugin?
Hello,
Thank you kindly for this wonderful plugin. I stopped using it when I upgraded to 3.3.1 but now see you have an update. I installed the update but when I try to +Add field it jumps to the top of the page and doesn’t do anything. It reacts like an anchor link.
If anyone knows a fix please please share. Thank you again.
datepicker didn’t work in 3.3.2 but after those changes it did for me..
simple_fields.php:
wp_enqueue_script(“jquery”);
wp_enqueue_script(“jquery-ui-core”);
wp_enqueue_script(“jquery-ui-sortable”);
wp_enqueue_script(“jquery-ui-datepicker”);
wp_enqueue_script(“jquery-ui-datepicker-sv”,”http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-sv.js”);
wp_enqueue_script(“jquery-effects-highlight”);
wp_enqueue_script(“thickbox”);
wp_enqueue_style(“thickbox”);
wp_enqueue_script(“jscolor”, EASY_FIELDS_URL . “jscolor/jscolor.js”); // color picker for type color
// wp_enqueue_script(“date”, EASY_FIELDS_URL . “datepicker/date.js”); // date picker for type date
// wp_enqueue_script(“jquery-datepicker”, EASY_FIELDS_URL . “datepicker/jquery.datePicker.js”); // date picker for type date
// wp_enqueue_style(‘jquery-datepicker’, EASY_FIELDS_URL.’datepicker/datePicker.css’, false, EASY_FIELDS_VERSION);
wp_enqueue_style(“jquery-ui-theme”,”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery.ui.theme.css”);
wp_enqueue_style(“jquery-ui-datepicker”,”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery.ui.datepicker.css”);
script.js
- $(‘input.simple-fields-field-type-date’).datePicker(simple_fields_datepicker_args);
+ $(‘input.simple-fields-field-type-date’).datepicker(simple_fields_datepicker_args);
Hello, I have read your tutorial and followed your instructions, however it is not completely working.
It shows up on the post edit page in admin, but does not show up on the post in the frontend / on website.
Why do you think it’s doing this?
Thanks in advanced!
Hi, I want to show my repeatable field file for show all my uploaded images. Now I use: $file_id = simple_fields_value(‘image_repeater’);
$image_info = wp_get_attachment_image_src($file_id, “full”);
$image_url = $image_info[0];
echo “”;
How can I show all the images inside the array?
Try using simple_fields_values instead of simple_fields_value (note the extra “s” in the first function).