85 thoughts on “Custom Field GUI for WP 2.1

  1. Mike: I just had the same problem than you. Check the quote marks, and make sure they’re the same as on the other lines of the code. It’s these –> ‘

    The line you pasted on your comment has different ones.

  2. Oops, looks like the comments here convert the quote marks. Just make sure they’re the same as the rest of the code. It worked for me.

  3. Thanks for this plugin. I have adapted it fairly heavily for my use, but have utilised it in another plugin which I hope to release shortly.

    So thank you for making it available, it saved me a lot of time and effort!

  4. Thank you very much for this plugin! Really great!

    Maybe it could be useful to add an explanation to the readme how to get the values of the new fields in the post.

    I got it now and do it this way:

    ID, $key, true); ?>

    Thanks again,
    Rita

  5. I am having a bit of a problem. I am using this plugin and the get custom fields plugin at the same time and its kinda not interacting well. I use a custom field to input a url that displays as an image in my post, however if i use the_meta() it prints the custom field and the URL. Is there a way (as suggested above) to only pick the fields I want to display? I don’t quite understand how the above poster did what they did.

  6. nm, I got it to work the way I need it to using the get custom field plugin. So far this plugin looks to be invaluable. Just one problem, I have 2 check boxes defined in the conf.ini file and when I grab their custom fields with get custom field plugin it only pulls one of the checkbox fields the other one says “true” any ideas?

  7. thanks for the plugin!!

    I was wondering: is it possible to have a dropdown selection box that lists files in a directory?

    I’m trying to add a custom field to select an image out of the images that user has already uploaded.

    Thanks!

  8. Pingback: Roo Reynolds - What’s Next? » Blog Archive » Speechification

  9. Thank you for your great plug-in.
    I have a problem.
    I use some same named field keys on single post.
    ex.)

    key=lib value=LibA
    key=lib value=LibB
    key=lib value=LibC
    key=date value=11/20/2007
    key=publisher value=PubX

    Then, activated this plug-in using following conf.ini
    [lib]type = textfield, size = 20
    [date]type = textfield, size = 20
    [publisher]type = textfield, size = 20

    When editing above post, this plug-in’s GUI showed just one “lib” key and “LibA” value.
    After updated the post,”lib”-“LibB” and “lib”-“LibC” was gone.

    Could I use same named keys? Is it a matter of conf.ini description?

  10. Thank you for the great plugin. Works pretty good on wp 2.2.3

    I have a question:

    Is there any chance to have the new field with a red background or the types in red?

    Thanks,
    Rita

  11. Thanks for the plugin!

    Just to let you know, there is a bug in the output for checkboxes. It works fine in Firefox, but unfortunately IE doesn’t like “checked=”checked””. It’s not valid HTML either, so here’s the fix.

    Line58:
    ”;

    It should be as follows:
    ”;

    Basically, remove the double quotes before and after the $checked variable. Merry Christmas from Tokyo!

  12. Hi,
    Custom-field-gui serves me well. Very useful. Thanks.

    Is there any way I can adapt it so that, when a post is created, all the custom fields will automatically be ‘populated’ with some nominal data (later to be changed manually)?
    I would be grateful if you could make suggestions!
    Thanks

    PS: any forthcoming developments, upgrades?

  13. Ok one thing I’d like to add to this fantastic plug-in. How do I get it to display the WYSIWIG toolbar (say TinyMCE) on a textarea so that it becomes very much like the main posting area?

    A

  14. Hi there,

    I made a very small modification (added 2 lines of code) to get this plugin to look much nicier in wordpress 2.5

    It nows looks exactly like the other boxes in the post page, wich you can expand or hide… Its beautiful.

    Please let me know if you want it. By the way, its a good ideia to publish this plugin in the wordpress.org/extend/plugins directory

    cheers and thanks

    Leo,,

  15. Leo, I was wondering if you knew how to make this work on 2.5? I’m having issues getting anything to show on the write page, none of my custom fields are showing.

    Hope you can help.

    KJ

  16. Ditto – I don’t seem to see any of the info showing up on the post page. When I create the post, I see the option for custom fields, but nothing shows up when I publish. Any ideas? I’m highly interested in this plugin. If there is a way to make this work, I would appreciate a quick email with instructions. Thanks!

  17. i am trying to do a batch posting by importing an xml file.
    i have this xml

    2008-07-28 20:00:00
    Onion Head

    onion-head

    0
    0

    Icon URL
    http://img.test.com/onionhead/1.gif

    everything is working except for the custom field named “Icon URL”.
    your plugin works when i post in the traditional way but not with importing an xml.
    how will i get this to work?

    iam using
    WP 2.5
    rc:custom_field_gui 1.5

    thanks.

  18. I’m trying to use this is 2.5 and it only works if you press save twice, the problem is that the $_POST variables aren’t getting passed the first time:

    Array ( [action] => autosave [post_ID] => -1220967195 [post_title] => asdASD [autosavenonce] => 42e6f84e75 [tags_input] => Array ( [0] => ) [post_type] => post [autosave] => 1 [content] => [catslist] => [comment_status] => open [ping_status] => open [excerpt] => [post_author] => 0 [temp_ID] => -1220967195 [post_status] => draft [post_category] => Array ( [0] => ) [post_content] => [post_excerpt] => [post_parent] => [to_ping] => )

    after the second time you I get all these, including the rc custom fields:

    Array ( [_wpnonce] => 757802af3d [_wp_http_referer] => /dev/wp-admin/post-new.php?type=photos [user_ID] => 1 [action] => post [originalaction] => post [post_author] => 2 [post_type] => post [original_post_status] => draft [referredby] => http://www.vman.com/dev/wp-admin/post-new.php?type=fashion [post_status] => draft [mm] => 09 [jj] => 09 [aa] => 2008 [hh] => 09 [mn] => 33 [hidden_mm] => 09 [hidden_jj] => 09 [hidden_aa] => 2008 [hidden_hh] => 09 [hidden_mn] => 33 [ss] => 15 [save] => Save [post_title] => asdASD [content] => [autosavenonce] => 42e6f84e75 [closedpostboxesnonce] => 587e6a07b8 [getpermalinknonce] => ee17d8b9a6 [samplepermalinknonce] => 8a06570795 [post_pingback] => 1 [prev_status] => draft [newtag] => Add new tag [tags_input] => [newcat] => New category name [newcat_parent] => -1 [_ajax_nonce] => bffb69d843 [rc-custom-field-gui-verify-key] => 248dcda0a6 [type] => photos [photography_credit] => [description] => [excerpt] => [trackback_url] => [metakeyselect] => #NONE# [metakeyinput] => [metavalue] => [advanced_view] => 1 [comment_status] => open [ping_status] => open [post_password] => [post_name] => [post_author_override] => 2 [post_ID] => 183 [ID] => 183 [post_content] => [post_excerpt] => [post_parent] => [to_ping] => )

    I don’t see how WP is stripping out the extra post variables, how can it interfere with the form fields like that?

  19. I see now the post variables in the first case are the ajax submit that happens any time you deselect a field, and the 2nd are the real save that seems like it can only happen after one successful ajax submit (when it shows saving draft)

    For those who want to use tiny mce with textareas you can modify rc-custom-field-gui.class.php like this:

    $out =
    ” .
    ” . $title . ‘ ‘ .

    ‘ .attribute_escape($value). ” .
    ” .

    // <![CDATA[
    edCanvas = document.getElementById(‘$name’);
    // If tinyMCE is defined.
    if ( typeof tinyMCE != ‘undefined’ ) {
    // This code is meant to allow tabbing from Title to Post (TinyMCE).
    document.getElementById(‘title’).onkeydown = function (e) {
    e = e || window.event;
    if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
    if ( tinyMCE.activeEditor ) {
    if ( (jQuery(\”#post_ID\”).val() 0) ) { autosave(); }
    e = null;
    if ( tinyMCE.activeEditor.isHidden() ) return true;
    tinyMCE.activeEditor.focus();
    return false;
    }
    return true;
    }
    }
    }
    // ]]>
    switchEditors.go(‘$name’);

    “;

  20. I mean like this:

    $out =
    ” .
    ” . $title . ‘ ‘ .

    ‘ .attribute_escape($value). ” .
    ” .

    // <![CDATA[
    edCanvas = document.getElementById(‘$name’);
    // If tinyMCE is defined.
    if ( typeof tinyMCE != ‘undefined’ ) {
    // This code is meant to allow tabbing from Title to Post (TinyMCE).
    document.getElementById(‘title’).onkeydown = function (e) {
    e = e || window.event;
    if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
    if ( tinyMCE.activeEditor ) {
    if ( (jQuery(\”#post_ID\”).val() 0) ) { autosave(); }
    e = null;
    if ( tinyMCE.activeEditor.isHidden() ) return true;
    tinyMCE.activeEditor.focus();
    return false;
    }
    return true;
    }
    }
    }
    // ]]>
    switchEditors.go(‘$name’);

    “;

  21. maybe this time:

    $out =
    '' .
    '' . $title . ' ' .
    '
    ' .attribute_escape($value). '' .
    '' .
    "

    // <![CDATA[
    edCanvas = document.getElementById('$name');
    // If tinyMCE is defined.
    if ( typeof tinyMCE != 'undefined' ) {
    // This code is meant to allow tabbing from Title to Post (TinyMCE).
    document.getElementById('title').onkeydown = function (e) {
    e = e || window.event;
    if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
    if ( tinyMCE.activeEditor ) {
    if ( (jQuery(\"#post_ID\").val() 0) ) { autosave(); }
    e = null;
    if ( tinyMCE.activeEditor.isHidden() ) return true;
    tinyMCE.activeEditor.focus();
    return false;
    }
    return true;
    }
    }
    }
    // ]]>
    switchEditors.go('$name');

    ";

  22. I’m still using this plugin but was wondering if it could be updated to fit in WP 2.7? It’s still functioning as it should, just not in a handy place at the bottom of the ‘write new post’ screen. If it would fit in the new page layout of 2.7 I could move it up next.

    Thanks!

  23. It looks as if this plugin is old, very old ;). Nevertheless I still use it everyday to add icons to posts I write. So, when there is a gallery inside a post, or it contains interactive content, or video or sound, I add an icon to it so visitors are aware of them. Somehow, with version 1.3.2 of WP, I have to click ‘Save post’ many times for the custom field to be saved with the post. Also, the checked boxes on the post admin screen are not visible afterwards. When I succeed in adding one of those custom fields, the actual checkbos remains empty.

    Are you in any way still maintaining this plugin? As far as I can see it’s the only plugin that gives me checkboxes for custom fields.

  24. Very old indeed. I believe many have taken the idea of this plugin and created a similar plugin. I don’t remember the names but just post on WordPress’ forum or IRC and someone should be able to suggest a plugin.

  25. Yes, there are similar plugins, like the verve meta boxes. That one works fine, the only thing is that is doesn’t work well. Sometimes all the info is suddenly gone, after moving the window to another place on the admin page. This Custom Field GUI I’m using for years and just now it gives me some trouble. But I’m already searching for ohter plugins :)

  26. Can you update this plugin? Some people prefer to use Custom Post Types but there are some of us who just want to use Custom Fields and would like them layed out in a nice looking form.

    There ARE people who still want this plugin.

  27. Ryan,

    This plugin was already outdated long before Custom Post Types was introduced. There are plenty clones of this plugin that are compatible with latest WP.

    Please search the plugin directory or post on the WP’s forum or IRC for recommendation. The other plugins should be compatible with mine (provided the authors code them properly) and you don’t lose your data or have to migrate the data.

  28. Pingback: WordPress Arena: A Blog for WordPress Developers, Designers and Blogger

Comments are closed.