Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @mynetflixtain,

    First of all, you don’t need the “Profile Builder – List user meta with a shortcode” add-on anymore, this feature was added directly into Profile Builder so for this, you will only need the Profile Builder plugin and the option from Profile Builder -> Settings -> Advanced Settings -> Shortcodes -> “Enable Usermeta shortcode” to be activated.

    To display the username of a user while using this feature you can use the following shortcode:

    [user_meta key=”user_login”]

    Note: The above shortcode will only display the username when a logged-in user visits that page.

    Best regards,

    Thread Starter mynetflixtain

    (@mynetflixtain)

    Ok, in the registration forms, I have some field such as nickname, phone number, email address ( meta data) fields. How do I display those fields using the shortcode.
    Thanks.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @mynetflixtain,

    I’m sorry for the above shortcode. I used the wrong quotation marks.

    The shortcode should be like this: [user_meta key=”user_login”] to display the username.

    To display the user email address you have to use the following shortcode: [user_meta key=”user_email”]

    For the nickname the shortcode is: [user_meta key=”nickname”]

    And for any fields made with Profile Builder, you will have to use the meta name for that respective field. The meta-name for that field can be found in Profile Builder -> Form Fields -> Meta-Name column. An example for this will be: [user_meta key=”custom_field_51″]

    Note: Did you also open the following support threads:

    https://wordpress.org/support/topic/user-meta-shortcode-not-working-2/
    https://wordpress.org/support/topic/user-meta-shortcode-not-working-3/
    https://wordpress.org/support/topic/user-meta-shortcode-not-working-4/
    https://wordpress.org/support/topic/user-meta-shortcode-not-working-5/

    If you did, can we continue the conversation regarding this issue on this email thread?

    Thread Starter mynetflixtain

    (@mynetflixtain)

    Okay, noted. It now shows on the front end . Also, is it possible to add field that can be hidden on the form front end which can only bed edited by the admin.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    What you’ve described should be possible with the paid version of Profile Builder. But since we are not allowed to speak about the paid versions here. Could you please open a support ticket here: https://www.cozmoslabs.com/support/open-ticket/ so we can continue the conversation?

    Thread Starter mynetflixtain

    (@mynetflixtain)

    The shortcode doesn’t work anymore again. I checked and it now shows that same blank page as it was . The ones supplied.

    The shortcode should be like this: [user_meta key=”user_login”] to display the username.
    
    To display the user email address you have to use the following shortcode: [user_meta key=”user_email”]
    
    For the nickname the shortcode is: [user_meta key=”nickname”]
    
    And for any fields made with Profile Builder, you will have to use the meta name for that respective field. The meta-name for that field can be found in Profile Builder -> Form Fields -> Meta-Name column. An example for this will be: [user_meta key=”custom_field_51″]
    Plugin Support alexandrubodea

    (@alexandrubodea)

    It seems that if I submit a message here it changes automatically the quotation marks to a different kind. I’ve now made the shortcode as a code so it shouldn’t change the quotation marks. But just as notice you will have to use the normal/standard double quotation marks.

    The shortcode should be like this: [user_meta key="user_login"] to display the username.

    To display the user email address you have to use the following shortcode: [user_meta key="user_email"]

    For the nickname, the shortcode is: [user_meta key="nickname"]

    And for any fields made with Profile Builder, you will have to use the meta name for that respective field. The meta-name for that field can be found in Profile Builder -> Form Fields -> Meta-Name column. An example of this will be: [user_meta key="nickname"]

    Thread Starter mynetflixtain

    (@mynetflixtain)

    It isn’t working either…I have adjusted and readjusted.it shows a blank page on the front end.

    Thread Starter mynetflixtain

    (@mynetflixtain)

    Below is a screenshot of the front end,:
    Screenshot_20220803-072737.png

    Plugin Support alexandrubodea

    (@alexandrubodea)

    I’ve tested on my WP Instance and the usermeta shortcode works correctly, as you can see this is how it looks in the back-end: https://snipboard.io/qdkUXj.jpg, and this is how it looks in the front-end: https://snipboard.io/eUg6tn.jpg.

    Did you copy and paste the shortcode? Or did you type it manually from the keyboard? Can you please try typing it from the keyboard (so it looks like in the back-end screenshot I’ve attached)? Sometimes when you copy and paste the shortcode, the wrong quotes are added or it copies the wrong format.

    If you still encounter this issue, after trying the above:

    1. Could you please go to your Dashboard -> Plugins -> and check if you have the latest version of the Profile Builder plugin (Profile Builder version 3.7.8)?

    2. Could you please go to your Dashboard -> Pages -> click “Edit” on the page where you’ve added the user meta shortcode -> and send a screenshot from there?

    3. Please go to your Dashboard -> Profile Builder -> Settings -> Advanced Settings -> Shortcodes -> and send a screenshot from there.

    ​Let me know how this goes so we can further investigate this if you still encounter the above issue.

    Best regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘User meta Shortcode not working’ is closed to new replies.