Custom Fields
Re-Envisioned
Support MB Elementor Integrator Meta field key without shortcode

  • Creator
    Topic
  • #24714
    Resolved KostaLado
    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #24719
    Long 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://metabox.io/support/topic/user-custom-fields-and-elementor-dynamic-content-for-author/.

    #24723
    KostaLado
    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 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
    KostaLado
    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 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 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.