Custom Fields
Re-Envisioned
Support MB User Meta shortcode to show User meta type "Select Avanced"

  • Creator
    Topic
  • #30549
    justdoit123
    Participant

    I add a new custom meta for User:
    type "Select Avanced":

    value : 1day
    label: 1 day each

    How do i use shortcode, like [rwmb_meta id="tm-schedule-check" object_type="user"]

    to show user meta "Select Avanced"

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #30567
    Long Nguyen
    Moderator

    Hi,

    You need to pass the user ID through the attribute object_id to the shortcode to show the user meta, like this

    [rwmb_meta id="tm-schedule-check" object_type="user" object_id=1]

    #30597
    justdoit123
    Participant

    Hi, my i create a custom field for User, ID this custom field: note11

    Custom filed group id : group_customer_info

    In this group i add a sub field text id: tm_name11

    i try this code but it does not work:

    [rwmb_meta id="note11" object_type="user" object_id="tm_name11"]

    how do i use shortcode to show sub field user from Group field.

    how do i use php code for that too ?

    thanks

    #30599
    justdoit123
    Participant

    You need to pass the user ID through the attribute object_id to the shortcode to show the user meta, like this

    > i want this shortcode automatically show value from current logined in user ??

    #30611
    Long Nguyen
    Moderator

    Hi,

    The helper shortcode does not support showing the subfield value and get the current user like that. You can create your own shortcode to show them, please follow this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders

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