Meta field key without shortcode

Support MB Elementor Integrator Meta field key without shortcodeResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24714
    KostaLadoKostaLado
    Participant

    Hi,

    For a widget in Elementor I need to set the meta field key without shortcode:
    I found the [rwmb_meta id="field id"], but this is a shortcode.
    How I can set this key without shortcode?

    Thanks in advance

    Konstantinos

    #24719
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please let me know which field type you are using?

    You can use the dynamic tags of Elementor to show the field value. Refer to this topic: https://support.metabox.io/topic/user-custom-fields-and-elementor-dynamic-content-for-author/.

    #24723
    KostaLadoKostaLado
    Participant

    Hi,

    I use the switch field, because I have a lot of yes/ no custom fields in woocommerce.
    In other elementor widgets I can use directly the metabox dropdown for fields.
    But not in this widget – there I need to set meta field key.

    How can I send you a screenshot?
    Thanks

    #24724
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can share the screenshot via this tool https://prnt.sc/.

    What is widget of Elementor are you using?

    What do you mean "set meta field key"? Is that the "get field value"?

    #24726
    KostaLadoKostaLado
    Participant

    Hi

    here is the screenshot:
    Screenshot_Elementor_Widget

    This is a woocommerce widget, I think from ReHub theme.
    They use your plugin.
    I hat already a support with them and they told me

    "You can know your key when you create it in your metabox plugin. You can ask author of plugin if you don't know where to find your key names"

    Thanks

    #24727
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It's the field ID when you create the custom field.

    $meta_boxes[] = array(
            'title'      => 'Personal Information',
            'post_types' => 'post',
    
            'fields' => array(
                array(
                    'name'  => 'Full name',
                    'desc'  => 'Format: {First Name} {Last Name}',
                    'id'    => 'prefix_name', // here is the field ID (meta key)
                    'type'  => 'text',
                ),
            )
        );

    Get more details here https://docs.metabox.io/field-settings/

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.