WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Simple Fields

With Simple Fields you can add any kind of custom fields to your pages, posts and attachments.

The built in custom fields in WordPress are great, but they do come with a big limitation: they only support plain text. To overcome this limitation I created the Simple Fields WordPress plugin.

With Simple Fields you can add for example textboxes, text areas, checkboxes, radio buttons, dropdowns, and file browser to the post admin area. These fields are all much easier to use for the user than regular custom fields.

All fields are grouped into logical groups called Field Groups. You can for example combine File + Name + Description into a an Attachments-group, that lets you add multiple files to your posts.

Use "repeatable" field groups to add many any amount of field groups to a single post (great for images or attachments!)

Simple Fields can be used on any post type, including custom post types.

The saved values are easy get in your theme or functions.php-file. Like this:

<?php
// Get the saved value for a field called "video"
$video_url = simple_fields_value('video');
?>

Field Types

Simple Fields comes bundled with a useful variation of fields. Note that any field can be added any number of times to a post using repeatable fields.

Fields types available in Simple Fields:

  • Text
    A simple text input to enter any kind of information.

  • Textarea
    A bigger area for inputing text. Even support WYSIWYG/TinyMCE-mode that makes it work like the regular content editor, so you can insert images, headlines, list, paragraphs and so on.

  • Checkbox
    A simple checkbox to be able to select something on/off.

  • Radio Buttons
    Add multiple radiobuttons where a user can select one of the buttons. Useful for letting a user choose between multiple options.

  • Dropdown
    Add multiple values to a dropdown box. User can select one or several items in the list. Useful for letting your users select one or severall things.

  • File
    Select any file using the built in file/media browser in WordPress. Since it's using the built in media * browser you can also upload new images/attachments to your posts. Using this field together with repeatable field groups = very powerful! :)

  • Post
    Select any post that exists in WordPress. Can be pages or any custom post type.

  • Taxonomy
    Select a taxonomy from a list of taxonomies.

  • Taxonomy Term
    Select a term from a taxonomy.

  • Color
    Show a color picker where the user can choose any color. The color can also be entered manually, if the user knows the hex value of the color.

  • Date and Time
    Chose a date and optionally time from a JQuery UI date and time picker.

  • User
    Choose a user from the system.

See the field documentation for more details about the different fields.

Use Field Type Extensions to add your own field types

If you miss a field type in Simple Fields you can use Field Extensions to add more field types. These are fields that are created by other developers and shared with the Simple Fields community.

if you want to create your own field you can do that using the Extension API.

Repeatable fields

Often just a single field is not enough. Why limit yourself to just one image or one attachment? With Repeatable Fields you can add as many images, text fields, textareas, or any other field type, as you want to to a post. This is a very useful feature when you want to create for example image slideshows or pages with many file attachments.

Add attachments and image slideshows in a snap.

Also, the fields in a a repeatable field group are easily sorted using drag and drop.

Simple PHP functions to speed up your development

<?php
simple_fields_value("field_slug");
simple_fields_values("field_slug_1, field_slug_2, field_slug_n");
?>

Works with all post types

With Simple Fields you can add fields to both regular pages and posts and to any custom post type.

Different post types can use different field groups - actually you can even use different field groups even for same post type, on a post to post basis.

Unit testing to minimize risk of errors

A lot of the functionality in Simple Fields is tested using unit testing. Test cases exists for all the functions that involve getting field values from your posts. This way the risk of anything breaking on a site after upgrade in minimized.

Help and Support

If you have questions/bug reports/feature requests for Simple Fields then:

Donate to keep this plugin free

Requires: 3.7.1 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-18
Downloads: 81,352

Ratings

4 stars
4.5 out of 5 stars

Support

1 of 4 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1 50,2,1 100,1,1 100,2,2 100,3,3 100,4,4 100,1,1 100,2,2 100,2,2 100,1,1 100,2,2
50,2,1 100,1,1 100,4,4 50,2,1 33,3,1 100,2,2 89,9,8 0,1,0
100,1,1
100,3,3
100,2,2
100,2,2
50,2,1 100,4,4 50,2,1 100,4,4
75,4,3
100,3,3 100,1,1
100,2,2 100,3,3
100,1,1 100,1,1
33,3,1 75,4,3 100,1,1
0,12,0 100,1,1
0,2,0 67,3,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
0,1,0 100,2,2 100,1,1
100,1,1 100,2,2 100,2,2 67,3,2 100,1,1 100,1,1 100,1,1 100,1,1
100,3,3
67,3,2 100,1,1 50,2,1 0,1,0 100,1,1 0,1,0 100,1,1 100,1,1 100,1,1
50,2,1
100,3,3 100,1,1
100,1,1
100,2,2
0,1,0 0,1,0
100,1,1