Simple Fields

Powerful fields plugin for WordPress

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

Simple Fields for WP: files now get a nice little thumbnail icon. Next: time for blog post and first release!

Simple Fields: now with repeatable fields. You should love this! I  know I do! :) #wordpress #plugin

86 kommentarer till “Simple Fields”

  1. Victor Teixeira skriver:

    Hi, I just tried your plugin and I must say it’s one of the best Custom Metaboxes plugin ever – and I tried them all: magic fields, more fields, custom field templates, supple forms, verve metaboxes…

    The only problem i had was a php error that prevented the plugin from activating. The error was at line 64 on functions-admin.php. So I just deleted lines 64 to 71.

    Now everything seems to work.

    On the other hand, I think you put some added complexity on the administration side of the custom fields with all that Post-connectors and post type defaults stuff.
    I really don’t think they are needed.

    Just take a look on Verve Metaboxes and see how it handles this more easily.

    OBS: You should delete that .psd file from the zip.

    One extra feature you could add to the plugin is to also allow duplicated fields, just like magic fields does.

    Thanks for this amazing plugin!

    • Pär skriver:

      Hey, and thanks for the comment!

      It’s very good to hear that you like it. Just like you, I’ve tried all (?) other field plugins and didn’t find any that I liked. So I wrote one myself :)

      I know that the post connector and stuff is a bit complicated, but it also brings a lot of flexibility. But this plugin is still beta and under heavy development, so things may change. I will however take a look at Verve Metaboxes and…we’ll see what happens!

  2. [...] Fields für WordPress 1. Juni 2010 | Autor: KHK Das Simple Fields Plugin von Pär Thernström ersetzt die WordPress eigenen Custom Fields.  Das Plugin [...]

  3. [...] Thernström´s Simple Fields Plugin ersetzt die WordPress eigenen Custom Fields.  Das Plugin unterstützt Txtareas, Checkboxes, [...]

  4. Dan skriver:

    Hi,

    Great plugin! This was exactly what I was looking for to help a non-profit (NGO) add extra details about their projects to a sidebar area of their WordPress blog. And the GUI is nice too.

    1 question/idea though: It would be great to have a Widget to pull these custom fields and place them in sidebar.

    Anything like that in the works? Or should I grab a random custom fields widget from the WordPress/Plugins site?

    Cheers!

    • Pär skriver:

      Thanks for the comment!

      The idea of an widget is pretty good and I’ll see what I can do about that. Until then you should probably see if there’s any existing plugin that can do that work for you.

  5. stumbler skriver:

    This should facilitate serializations of posts other than by date/time. I write content somewhat at random that has to be inserted among posts already published in a category and one of several subcategories. How could I create a field named ”serialization” and assign a numeric value that places a post properly among posts in any cat/sub-cat sequence? Any suggestions?

    • Pär skriver:

      I’m sorry, but I’m not sure that I understand your problem. Could you explain it a bit more?

  6. stumbler skriver:

    Although I am open to your CMS tree page view that makes content ordering easy, (it is installed – works well!!), I wanted to use posts that could be sequenced (or serialized) in a similar manner, perhaps by using custom fields. This would help (I believe) to make better use of the 2010 theme’s new navbar.
    For posts created in random order that need to be sequences much like chapters in a novel or textbook, I could typically assign each post a multiple value of five (5,10,15,20 etc). I could then insert ‘after-thought’ posts like (5,7,10,11,13,15, 20,21 etc.) so that a numeric sort would yield the desired published sequence.

    Does this help? And many thanks for responding.

  7. Pär skriver:

    Ok, I think I know what you are looking for now. There is currently no way to automate this with Simple Fields – if that’s what you’re looking for.
    But you could, as you yourself write, use a custom field and enter a number there and then sort the pages by that number.
    I’ve checked the documentationen and there is an option to sort by a custom field:
    http://codex.wordpress.org/Function_Reference/query_posts#Custom_Field_Parameters

  8. Caleb skriver:

    Hi there!

    Love this plugin, it’s just what I needed. One problem though – I’ve installed it on a clean install of WP3, and when I add a field of type ”File”, the file browser doesn’t work. It just shows a search box, and a filter button, and none of it does anything. Any ideas why that might be?

    Thank you!

    • Pär skriver:

      Sorry about that, it’s a bug and I’m aware of it. I will try to upload a new version of the plugin later today or tomorrow.

      • Caleb skriver:

        Oh thanks!

        One other thing. I want to use query_posts() to list posts that have a certain value set in a custom field created with Simple Fields. I know the normal way is to use meta_key & meta_value, but how can I use those with fields created by this plugin?

        • Pär skriver:

          Good question! Simple Fields does store its values as regular (although hidden) custom fields, so they should work fine with meta_key/meta_value. The problem is however to get the name of each field, since they are hidden and not shown anywhere. Hm.. Have to think about this and add a new function or something for this. Hang on!

          • Pär skriver:

            Ok, I’ve submitted a new version now. In this new version, when editing a post you now have a link called ”Show custom field keys”.

            Let me know if this solves the meta_key-problem.

  9. Aaron Pitts skriver:

    I have noticed a bug, if you have multiple file fields, clearing one will clear them all in that post/page. I am using WP 3.0 if that makes a difference

    Thanks

    • Pär skriver:

      Thanks for the bug report. I can however not reproduce this. If I choose ”clear”, only that file field will be cleared. Are you able to reproduce your problem everytime?

      • Aaron Pitts skriver:

        I have just tested again and yes it seems to do it every time, I just upgraded to WP 3.0 RC3 but that made no difference either.

  10. Aaron Pitts skriver:

    I also suggest changing line 50 in functions_post.php to:

    $custom_field_value = trim($one_field_value);

    As it trims the whitespace, great plugin btw!

  11. [...] heb ik wel een aanvulling op de custom posts gevonden, namelijk de Simple Fields plugin, waarmee verschillende type invoervelden gemaakt kunnen worden. Kortom, geen uitgebreide [...]

  12. Jonas skriver:

    Hello!

    looks like a very useful plugin but unfortunately I can’t seem to activate it running WP3.1 from trunk i get an error about unexpected $end in file functions_admin.php at the last line. Any ideas as to what could be wrong?

    Keep up the good work on this great piece of code.

    • Jonas skriver:

      Tried it with the 3.0 Final just to make sure it wasn’t something in trunk that messed things up. But still no cigar. Same error.

    • Jonas skriver:

      Hi, had a look at the source and i fount php open tags in the old short style. My server had them turned off for php since that has been the recommendation for a few years not to use them. But now i switched short_open_tag = On and it activated ok. Just thought I should let you know that some people might have problems with that if their hosting doesn’t give them control of their php.ini

  13. Jonas skriver:

    Have been playing around with the plug-in a bit. Just love it. Any plans on adding additional editors. Like editors for date and time?

    • Pär skriver:

      It’s definitely something that I may add. I need to use the plugin a bit myself first before I decide what to add next. But yes: more field types will come! :)

  14. Jonas skriver:

    Just noticed a strange thing. When i have the plug-in active my widgets page stops functioning (no drag/drop or response from widget headers). Haven’t tried to debug it on a clean site yet. Just dropped you a line to see if it is something that should affect that. Like loading some script on all admin pages or something.

    • Pär skriver:

      Is this on the latest version of Simple Fields? It sounds like a problem that I used to have, but it should be fixed by now.

      • Jonas skriver:

        Yes this is on version 0.2.5. Anything I can test to verify?

        As soon as i deactivate the plug-in widgets behave normally again.

  15. jonas skriver:

    Hej Pär !
    Jag har pulat en del med wp, och tycker att det jag läser och har sett av ditt plugin verkar klockrent.

    Funderat på att göra något för att lixom visa dom custom-fälten åxå.

    Kanske är en mer allmänfråga en specifik till just ditt plugin, men du verkar juh ha huvvet på skaft o vara snabb som en vessla, så du kanske kan bistå med något ffifgt sätt att visa de olika custom fälten man faktiskt kan mata in?

  16. Brandon skriver:

    Hello. You have created a couple of excellent plugins and I commend you for their intuitive interfaces. I’m having a few issues however that seem to be bugs.

    #1 – In the CMS Tree Page View Plugin, reordering items seems to be pretty much broken. When I look at the Post Order of them, they all end up being like the same number and thus don’t sort correctly. It seems the logic for determining how to set post orders may be faulty.

    #2 – With Simple Fields, Inherit from Parent doesn’t seem to be functional at all. I definitely have a parent item with field group set and a direct child with Inherit from Parent set and the field group does not appear in the child.

    I’m using WP 3.0 that was upgraded from 3.0 RC 2.

    • Pär skriver:

      Thank you! Very happy to hear that you like the interfaces. I’ve spent pretty much time working on them :)

      And thanks for the bug reports. I’ll try to get them fixed in the next versions.

    • Pär skriver:

      I just tested reordering posts on my local wordpress installation and it seems to work. Does it never work for you, or just sometimes? Also, before reordering the pages, do they all have the same order number then?

  17. Brandon skriver:

    I just did a clean install of 3.0 release and confirmed that there’s something wrong with the plugin itself which is causing Inherit from Parent to not work at all.

  18. Brandon skriver:

    I debugged the Inheritance problem. Line 392 of functions_post.php is:

    simple_fields_get_selected_connector_for_post($parent_post);

    and should

    $connector_to_use = simple_fields_get_selected_connector_for_post($parent_post);

    • Brandon skriver:

      A useful feature would be the ability to apply a field connector to all the children of a page. As it is now, I can set a parent page to a connector and set all the children to inherit, but I don’t actually want the fields to be used on the parent.

      For example, I’m using page structure as the navigational structure on a site I’m building. In the product catalog I have different categories of products, each with their own specific connectors. So say I have:

      Product Category
      Product 1
      Product 2
      Product 3

      I apply the connector to Product Category so it inherits to all the children, but the Product Category page itself doesn’t need to custom fields.

      I would imagine this situation happens most of the time when you’re using inheritance, as the container for children usually doesn’t share attributes with the children.

      • Pär skriver:

        I absolutely understand what you mean but this and I must say I’m a bit surprised that I haven’t thought about this myself yet. This will definitely go in my todo-list.

        • Brandon skriver:

          In regards to the bug with ordering in CMS Tree Page View, all the pages started with 0 as their order. After reordering about 10 pages a number of times they all ended up with orders of like 22-24. Most were 23. It was pretty weird, I’ll take a look and see if I can get some more specifics for debugging it. I just didn’t have time to get into it and I manually ordered them.

    • Pär skriver:

      Wow, can’t believe you actually went through my code :) Thanks a lot!

  19. Taylor skriver:

    I just got the following error when I tried to activate the plugin:

    ”Fatal error: Call to undefined function menu_page_url() in /home/taylorl/public_html/taylorloftin.com/test/wp-content/plugins/simple-fields/simple_fields.php on line 59″

    I had to delete the entire plugin from the folder in order to use my site!

    • Pär skriver:

      I’m sorry to hear that you had problems with my plugin. Simple Fields requires WordPress 3 now, but I know I should make that a bit more clear on the plugin page.

  20. Matt skriver:

    There seems to be a couple of javascript errors that occur when trying to upload a file through the wordpress file uploader.

    this is what firebug is outputting.

    a.ui is undefined
    [Break on this error] (function(a){a.widget(”ui.sortable”,a….”intersect”,zIndex:1000}})})(jQuery);

    $(”#simple-fields-field-group-existing-fields ul:first”).sortable is not a function
    [Break on this error] handle: ”.simple-fields-field-group-one-field-handle”

    I am only using 2 other plugins. SlidePress and cForms.

    • Matt skriver:

      I said trying to upload a file, but I meant it happens when i click ”show” in the media gallery from WordPress’ Gallery browser.

      • Pär skriver:

        Ok, thanks for the bug report. I’ll take a look at this.

        • Rob skriver:

          Im also getting this error Only on the dashboard.

          $(”#simple-fields-field-group-existing-fields ul:first”).sortable is not a function
          [Break on this error] handle: ”.simple-fields-field-group-one-field-handle”

          Problem is. Its not occurring in my Dev install.

  21. Aaron Pitts skriver:

    Hi again, couple of suggestions would be to add the ability to edit the HTML view of a post area and to be able to make the textarea box size adjustable like the normal post textarea.

    Many thanks,
    Aaron.

    • Pär skriver:

      Thanks, good suggestions!

      • Aaron Pitts skriver:

        Great! How hard would it be to add in the edit HTML of a textarea post box? It’s just that I could really do with that ability to make wordpress into a true CMS. Simple fields is one of the best plugins I have used.

        Regards,
        Aaron

  22. Robin skriver:

    Tja, ser ut som ett galet nice plugin, skulle just sätta mig ned och utveckla något liknande, men hittade detta, dock Så förstör nuvarande installationen min admin panel, jag har WordPress 2.8.4. och det går inte att slutföra installationen, har inte någora error påslagna för tillfället så allt jag kan ge dig nu är att den stannar på ”plugins.php?activate=true&plugin_status=all&paged=1″ och efter det kan man inte använda admin panelen förs man tar bortt pluggin mappen

    Jag ska sätta mig ned och pilla lite senare idag, så kan nog komma med mer info då

    Mvh Robin

    • Robin skriver:

      Oki, såg att det var 3.0 som gällde, så nu fungerar det mesta, går dock inte att lägga till
      dropdown values,

      + Add dropdown value

      ger

      Uncaught ReferenceError: simple_fields_field_type_options_dropdown_values_add is not defined

      Just so u know

      • Robin skriver:

        Funktionen låg inuti ännu en jquery DOM function, var därför det inte fungerade, så ta och flytta ur simple_fields_field_type_options_dropdown_values_add() från den andra $() functionen så ska allt funka fin fint.

        Mvh Robin

        • Pär skriver:

          Wow, bra grävt där!

          Jag skyfflade runt lite kod häromdagen och har uppenbarligen inte testat allt sen dess. Ny version kommer på momangen (och i dessa sommartider så betyder det väl under veckan iaf, tror jag..).

          Hör av dig om du hittar fler buggar eller om du har några önskemål på funktioner eller så.

          • Robin skriver:

            Tja, försöker att utveckla lite på mitt håll också, men är första gången jag jobbar med kodmessigt med custom filds.

            Jag skulle behöva specificera både value och id på dropdown menyn i admin, hur skulle du gå tillväga? Bara logiken alltså, koden kan jag nog fixa själv :)

            Mvh Robin

            • Robin skriver:

              var inget, räckte med att ändra option databasen, vill du ha kokändringarna så säg till, men kanse är lite overkill för vanliga användare

  23. Andreas Wedberg skriver:

    Instämmer i hyllningskören. Dock hade det varit riktigt bra om WYSIWYG-editorn gick att förstora precis som man kan göra med standardinmatningsfältet. Som det är nu är det lite jobbigt att navigera i editorn om det handlar om långa texter… Alltså en dra-släpp funktion för att ändra dess storlek.

  24. unodj skriver:

    Hi!
    great plugin )
    I slightly modified it by adding a function to download files, using SWFUpload
    Find the time to look, and perhaps integrate this feature in your plugin.

    http://eklmn.org/wordpress_plugins/!uno edited + fileupload (from original version 0.2.7).zip

    Changes in the original files are made between lines ####### {somenumbers} unodj #########

  25. unodj skriver:

    I apologize for the messy code in a hurry ))))

  26. Tai skriver:

    Hi, Awesome plugin. Simple to use but can be used to achieve some complex results.

    1 Problem I am having is finding the right meta_value for query_posts.

    I would like to show posts from only a specific post type, with a specific meta_key and meta_value eg

    Getting the meta_key is nice and easy(thanks to your ”Show custom field keys” feature) I can’t seem to get the right meta_value though. I have tried with numerous values and am entering the value exactly as it is echoed on the page, but when I do this no posts are shown. I assume then that the meta_value thats echoed is not actually the same as the meta_value stored in database.

    Thanks for a very powerful cms plugin!

  27. Tai skriver:

    Had a trawl through the database and found that the drop downs have an actual meta value of

    dropdown_num_”number”

    eg

    dropdown_num_4

    A cool feature would be making this easier to find (though in honesty its not to hard to locate in the database

  28. [...] jonge plugin, dus mogelijk nog wel bugs, maar het ziet er simpel uit en doet wat het moet doen: op een overzichtelijke manier Custom Fields weergeven, zodat ook mijn klanten het snappen en geen handleiding nodig hebben om te posten. Hoe je velden [...]

  29. Philip skriver:

    Thank you for the plugin! Knowing it exists makes the prospect of using WP3 as a CMS much more attractive. I seem to be having a few minor problems though:

    1. With file uploads I click ‘select’ and all I am shown is the media library, without the ‘from Computer’ or ‘From URL’ tabs. I found this to be the case in both Safari and Firefox.

    2. I’m probably a little out of my depth here, but can you tell me which file/template I should pasting the simple_fields_get_post_value script (method one) into? single.php only seems to display the custom fields when the post itself is selected – when I try to display a page of custom posts the field values are nowhere to be seen. Also, whereabout in the file I should be pasting the script? I’ve hit a brick wall with the wordpress.org docs.

    I should note that I am using Simple Fields in conjunction with the Custom Post Type UI plugin.

    Thanks again!

  30. Jeremy skriver:

    Have you thought about adding the ability for a blogger to add additional instances of a field on the fly?
    For example, I have Products with a description and an image and 1 example link, but an additional product might require 2 images, and 1 description and 3 example links.

    I am looking around to see if anyone has created this for their custom fields add_meta_box yet.

    • Pär skriver:

      Maybe.. Simple fields have something called ”Repeatable fields” that sounds like what you’re after. In your example you could create the fields ”images”, ”descriptions” and ”links” and make them repeatable. Then you can add as many images, descriptions and links as you want.
      Is that what/how you mean?

  31. Jon skriver:

    This really is a great plugin, and it’s solving several problems I’d had with other metafield plugins, specifically as they bind to Custom Types and one-off Pages. So, thanks!

    Unfortunately, the only thing holding me back from using it on a few projects now is the File Field/Upload problem that others have reported, too. I’ve tested it in Mac/FF, Mac/Saf, Mac/Chrome, PC/IE, and PC/FF, and I can’t get it to work in anything. It just keeps bringing up the faulty quasi-Media-Upload box, with broken tools. Do you have an update on when you think this will be fixed in the plugin? I’d love to use it, and recommend it!

    Thanks again.

  32. AnonymousC skriver:

    Yes, the file field/upload function is definetly broken.

    I wonder why did You release the plugin with this important part not working?

    • Pär skriver:

      The file browser works fine for me, but yes there have been some problems for some users with the file browser. If you have information that can help me to find the reason for this, please let me know.

      You can not upload files yet, this is a functionally that I will try to add later on.

      The plugin is still very useful and I did release it as a beta because it is a very useful plugin with a great GUI and with functions that I have not seen anywhere else yet.

      Does this answer your question?

      • Mikko Paltamaa skriver:

        This is a really great plugin. It allows you to do many things that should be in the WP core to start with.

        But it’s currently broken in my installation of WordPress 3.0.1 & Simple Fields 0.2.9.

        The problem is that you cannot select a file for a file input field. Everything works fine until you click the ”select file” link, which causes a javascript error. This will broke the ”select” button on the next screen.

        Firefox 3.6.2 says:

        Error: jQuery is not defined
        Source file: http://fungimaa.com/wordpress/wp-content/plugins/simple-fields/scripts.js
        Line: 430

        }(jQuery)); // This is the line

        Internet Explorer 8 says:

        ‘jQuery’ is not defined – scripts.js, line 2 char 1

        I hope this helps! :-)

        By the way, if you need an example of how to add media files check the Attachments plugin:

        http://mondaybynoon.com/wordpress-attachments/

        • Pär skriver:

          Thanks for the bug report Mikko.
          I’m gonna try to give the file selector an overhaul soon, so hopefully it will start to work better..

  33. Mantish skriver:

    Hi, This is a great, useful plugin. Thank you!

    I found a bug today:

    I created a repeatable field group with several checkboxes (one for each day of the week).

    In my post I added a couple of this groups and in each one I checked a different checkbox (for example, monday in the first froup and friday on the second). Then when I saved the post, both checkboxes (monday and friday) appeared checked only in the first group.

    However if I check the same box in both groups, they are saved ok.

    I’m using wp 3.01

    • Pär skriver:

      Thanks for the bug report. I’ll see if I can reproduce this and if I can I will try to fix this as soon as possible.

      • Mantish skriver:

        Hi, I fixed it!

        The problem has to do with checkboxes, which aren’t sent as post variable if they are not checked.
        So let’s say a checkbox is repeated, but only the second one is checked. However the save function would save it as the first one, as it isn’t looking into the numInSet from the $_POST; instead it is making the numInSet from the number of times a variable is sent.

        Here’s the fix: lines 173-186 in functions_post.php

        //$num_in_set = 0;
        foreach ($one_field_values as $num_in_set => $one_field_value) {

        $custom_field_key = ”_simple_fields_fieldGroupID_{$one_field_group_id}_fieldID_{$one_field_id}_numInSet_{$num_in_set}”;
        $custom_field_value = $one_field_value;

        if ($do_wpautop) {
        $custom_field_value = wpautop($custom_field_value);
        #var_dump($custom_field_value);#exit;
        }

        update_post_meta($post_id, $custom_field_key, $custom_field_value);

        //$num_in_set++;

  34. [...] This post was mentioned on Twitter by Jonathan Christopher, Pär Thernström. Pär Thernström said: Indeed it is! :) RT @jchristopher: Just found Simple Fields, it's like Attachments on steroids. #WordPress http://bit.ly/ctdhJ8 [...]

  35. [...]   Simple Fields 0.3» Pär Thernström (url)Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. [...]

Skriv ett svar