shortcode to show User meta type "Select Avanced"

Support MB User Meta shortcode to show User meta type "Select Avanced"

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30549
    justdoit123justdoit123
    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

    #30567
    Long NguyenLong 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
    justdoit123justdoit123
    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
    justdoit123justdoit123
    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 NguyenLong 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 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.