User Meta Shortcode

Overview

The User Meta Shortcode plugin allows you to easily display user metadata in your posts or pages using shortcodes. It simplifies showcasing personalized user information, creating a more engaging experience on your site without needing to write complex code.

Note: This plugin is not part of the core Ultimate Member (UM) plugin. It is a separate extension that must be installed independently. For installation instructions, refer to the following link: Installation Guide.

Short Code

[um_user user_id="" meta_key="" ]

  • meta_key - This key is used to store and retrieve the field's value in the WordPress database. It's like a unique identifier for that specific piece of information. You can find it in the field settings in UM form builder in wp-admin>UM>Forms>Edit Form>Edit a field.

  • user_id - This attribute is a user ID. The user_id is a reference to the unique identifier assigned to each user in the WordPress database. You can see it in wp-admin>Users>Hover only on user edit> check the browser's status.

Sample usage in a page

[um_user user_id="4" meta_key="first_name" ]

Check out the image below to see how the shortcode seamlessly integrates into the WP pages block editor. This visual guide makes it clear and simple to incorporate shortcodes, allowing you to effortlessly enhance your page with the desired user meta data.