Developer's Custom Fields
[resolved] Different prefix in certain scopes? (3 posts)

  1. Arden012
    Posted 3 years ago #

    Hi There,

    I'm making use of gravity forms, and I need some of the custom fields I created with developers custom fields to show up in the default custom fields. Now in your documentation I read "An underscore at the start means these values won’t show up in the default WordPress custom fields meta box.". I already used developers custom fields with the default prefix a lot, and would like to keep all those values the same, I just need them to show up under one custom post type / custom fields box. Is this possible? Thanks!


  2. Steve Taylor
    Plugin Author

    Posted 3 years ago #

    It's not possible now - the prefix is global. It could be added as a feature - perhaps a show_in_default_custom_fields field parameter? I'd need to change the slt_cf_prefix() function to take the name of the field as well, and selectively strip the underscore at the start as appropriate.

    However, wouldn't it be easier to just not define such fields through the plugin? Just make sure you do this:

    slt_cf_setting( 'hide_default_custom_meta_box', false );

    Then you can manage stuff you want in the default custom fields there.

  3. Arden012
    Posted 3 years ago #

    It would be a nice feature to make Developers custom fields a bit more compatible with plugins that create and populate their own custom fields.
    Anyway, you're absolutely right, it's way easier just to define the fields within the plugin, didn't see that gravity form option yet :).
    Thanks for your swift reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Developer's Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic