Custom Field GUI

This WordPress plugin enables the automation of creation of form element user interface for entering Post’ custom field. User will specify the form input type, the subject, and available options (when applicable). The corresponding form elements will automatically appear in the Write Post page.

Download Link


Unpack the file and upload the folder rc-custom-field-gui to wp-content/plugins/. Activate from WP’s Plugin Management page.


This plugin supports the following types of form element: textfield, checkbox, radio, select, and textarea. To specify the custom fields, edit the file conf.ini.

Each entry begins with the subject inside square brackets. The second line specifies its type. The third line, which only applies to type “radio” and “select,” enumerates the available options. Each option has to be separated by a hash mark (#). For type “textarea”, “rows” and “cols” will specify, respectively, the height and width of textarea. The following are sample entries in conf.ini.

The custom fields’ values can be displayed with the regular method or with the help of appropriate plugins.


custom field gui screenshot 1

custom field gui screenshot 2

68 thoughts on “Custom Field GUI

  1. Pingback: » Wordpress Custom Field GUI

  2. hi Joshua.

    your custom field plugin is very useful.
    i have add a date selection field. it creates a unix timestamp in the meta data. you can put it into your official distrubution.

    the configuration is also very simple:

    [Display until]
    type = date
    start = 946681200
    end = 1262300400

    best regards
    johannes schäfer

    and here comes the code:

  3. hm, what to …
    wordpress eats all my html-tags.
    if you are interessed on the code, you can send my a email.


  4. Thanks for the plugin! Johannes, could you please send me an email with your addition if you see this? I can be found at sonoflee [at…] gmail [dot…] com.

  5. This is amazing plguin, a very good job, but I’m wondering when it will be updated for WP 2.0? It seems that when I go back an edit an older post, the custom fields get reset to the first character of what was in the field before. Any ideas?

  6. Jonathan,

    This plugin is compatible with WP 2.0.

    Did it ever work properly before?

    Does the problem only occur when you use custom field of type “textfield?”

    Do you not have a problem with WP’s built-in custom field interface?

    Try disabling all other plugins. One/some of them may interfere with mine. Let me know if you know which one(s).

  7. Pingback: André SC » Blog Archive » New media and art

  8. Thanks, Joshua, fantastic plugin!

    Re custom fields resetting to first character with WP 2.0 –
    Here’s the details to duplicate the error, hope someone can find a fix for it:
    1/ Set permalinks to anything other than default (eg ‘Date and name based’)
    2/ Edit a post via an ‘edit’ link on an Archive, Category or the actual post page (doesn’t seem to be a problem when editing a post from the index/home page)

  9. It’s probably right in front of me, but is the plugin set up to deal with defaults?

    type = select
    value = 9 # 8 # 7 # 6 # 5 # 4 # 3 # 2 # 1

    I’d like it if the submitter made no adjustment to be able to define the value.

    type = select
    value = 9 # 8 # 7 # 6 # 5 # 4 # 3 # 2 # 1
    default = 5


  10. Darrell,

    Just for you, can you test a new version that supports default value for fields of type checkbox, select, and radio?

    If you upgrade, take care not to overwrite your existing conf.ini

    Sample conf.ini:

    If you don’t desire any default value set, just omit the entire “default” line.

    Let me know if you have/don’t have any problem with this new version.

  11. Joshua, that works great. No issues with it. You’ll undoubtedly want to add something to the readme.

    Also, 'Select'; — I wonder if this is necessary if a default is included?

    Left field question: Any quick and dirty way of inserting info, a url for instance, into the generated form from a bookmarklet?

  12. Guess those backticks didn’t work. Rats.

    One more thing. I don’t know how far you plan to extend custom-field-gui, but I can see a need for being able to control the size of textfields.

    [Article URL]
    type = textfield
    size = 75

    25 is a nice default, but having more control over this aspect would be a nice addition, too.

  13. Pingback: André SC’s PixelPLEXUS » Blog Archive » David Krut Publishing on WordPress

  14. Joshua,

    It worked. Thanks for that small addition.

    Here’s something I noticed. The first conf value, when inserts are made into a table produce values like, “7” and “3” but the latter produce field values are inserted as ” 7″ and ” 3″…minor I know, but it was something I noticed. Might be useful to note the use of the delimiter and spaces in the readme.

    value= 9 # 8 # 7 # 6 # 5 # 4 # 3 # 2 # 1

  15. Joshua,
    This is fantastic for a newbie like me…thanks.

    One problem though…my items are being ordered alphabetically, although they are not alphabetically listed in the conf.ini file. Since they are published as an “unordered list”, what is causing them to be ordered by alphabet? More to the point, how can I change this?

    Also, a side note for other newbies…the plugin did not display on the published pages until I added the meta template tag to my templates (as with the WP built-in functionality)…I had assumed the plugin would take care of that.

  16. Wow, what an incredible plugin, thanks for developing it! Very handy! One more thing: I tend to use more custom fields on my PAGES, and not only for POSTS. Is this functionality already there and I overlooked it, or could it be easily added, pretty please?

  17. djchuang,

    I believe someone provided the solution for you somewhere in a commment in this site. See if you can find it. Let me know if you can’t.

  18. You’re right, thanks for pointing me in the right direction. I’ve added solution to this thread for others’ convenience — to add the GUI on PAGES too, add this line to rc-custom-field-gui.php :

    add_action( ‘edit_page_form’, array( ‘rc_custom_field_gui’, ‘insert_gui’ ) );

  19. Hi Joshua

    What a neat little plugin. However I am curious to find out if there is a way to display the fields in the order they appear in the config.ini file.

  20. Hi…

    Love the plugin. I have one request tho. How can i make this work for writing new pages as opposed to posts? I use my wordpress as a cms and write pages all the time with specific meta data that i would love to be able to input at the time of writing.

    Thanks in advance.


  21. Hi, thanks for the awesome plugin!

    My cofig file reads as follows:

    [Start-Up Cost]
    type = select
    value = Very Low # Low # Low Medium # Medium # High Medium # Low High # High # Very High

    [Potential Earnings]
    type = select
    value = Very Low # Low # Low Medium # Medium # High Medium # Low High # High # Very High

    In the admin section the order of these two fields mirrors the cofig file with Start-up costs first and Potential earnings second.

    For some reason the order is reversed when I publish the post with Potential earnings first!

    Do you perhaps know what could be causing this.



  22. I love this plugin but really need a way to display the fields in non-alphabetical order – I need them to be in the order I’ve used in the confi.ini file. Any way to do this?

  23. Is this plugin working with WP 2.1.2? I’ve installed it but nothing shows up..

  24. Manne,

    I accidentally uploaded some wrong package recently. You may want to download it again. Let me know if you still have a problem.

  25. I am getting an error message on the Write Post screen:

    Fatal error: Call to undefined function: wp_create_nonce() in /home/timeless/public_html/wp-content/plugins/rc-custom-field-gui/rc-custom-field-gui.class.php on line 150

    I am using WP 2.0.2. I thought this was for that version, but the last comment made me wonder. If it is still available, I would really love to have the right version. Thanks!

  26. Thanks for the info, Joshua. That’s disappointing! Hm… I wonder if you might consider keeping the 2.0 legacy version available for those of us who really can’t upgrade? Or at least making it available upon request? I’ve noticed many plugin developers do this, because some of us built elaborate site on 2.0, and upgrading would break many good, solid plugins which aren’t available for 2.1 yet. If you don’t want to publish it, I would sure appreciate it if you would email it to me. I have been looking for this feature for ages. :)

  27. BLESS YOU!!!! It’s perfect. It is EXACTLY what I have been needing. For the record, 1.2.1 is the correct version for WP 2.0. Thanks for the advice on upgrading. I will make a particular note of it.

    Thanks again. I just can’t express how helpful this is for our site, and solves an issue we have been dealing with for a long time. Thank you, thank you, thank you!

  28. It might help someone if I add in here the code I used to display the field contents. We needed something VERY simple for a post’s subtitle, but more convenient for authors than how WP has set up the custom fields. So here is how I display a subtitle on a single post page:


  29. Hm…sorry to do this again, but the post did not show my code. I will try once more, but if it doesn’t work, you’ll have to tell me how, or else not worry about it.

  30. I tried the latest package (version 1.5 and not 1.5b that I had tried before) but still nothing shows up on the posts page. Any ideas?

  31. Joshua: Oh no, I totally missed that! Thank you for fast replies and a great plugin!

  32. Great plugin. To my custom-field-gui I have added a [multiple select] and [date] field selectable though javascript calendar. If you are interested to add to a next release, I can send you the code.. drop me a mail.

  33. I am finding more uses for this plugin every day! Is there a way to change where in the Write Post admin page the custom fields show up? Thanks!

  34. I would like to move it just below the “title” and above the content of the post. Well, ok…. in an ideal world, I would really like to control the location of each of the custom fields separately!! But I will settle for being able to move all of them to between the title and the content. :) Can it be done?

  35. Pingback: : Wordpress CMS-tool 3: review de postvrijheid

  36. I would love to move the custom fields below the title and above the content just as kalico suggested. That would be awesome.

  37. Pingback: agyampark · wp plugin karnevál

  38. Pingback: Stefan Hayden » Blog Archive » The wordpress Custom Field GUI is great.

  39. Hi, I really like this GUI, and I would love to be able to use it, but it does not appear to be working for WordPress 2.2.1 (as of August 2007). Any advice? Thank you.

  40. This bit: add_action( ‘edit_page_form’, array( ‘rc_custom_field_gui’, ‘insert_gui’ ) );

    doesn’t seem to work on 2.2.2, are there any known compatibility issues with other plugins? I’d really like to get this to work.

    It works fine on the “write post” page, but not on “write page”.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.