Title: Display dynamic data using shortcodes
Last modified: June 29, 2024

---

# Display dynamic data using shortcodes

 *  Resolved [amirwagih](https://wordpress.org/support/users/amirwagih/)
 * (@amirwagih)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/display-dynamic-data-using-shortcodes/)
 * Is there a way to display dynamic user data using the provided shortcodes? For
   example, I’m currently trying to use this shortcode [mycred_leaderboard_position]
   to display users’ positions on their profiles, which are elementor templates 
   that show dynamic data about the currently viewed user. However, if user X views
   user Y’s profile, the shortcode still shows user X’s position, not user Y’s position,
   because the shortcode displays the data of the logged-in user instead of the 
   currently viewed user. I tried to find a solution through the documentation. 
   Still, I only saw the user_id attribute, which doesn’t really solve the problem
   because I can’t set a specific user ID since I’m using templates, as I mentioned
   earlier.
   I hope I clarified my issue well. Kindly let me know if there’s a solution.
   Best regards,Amir

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [amirwagih](https://wordpress.org/support/users/amirwagih/)
 * (@amirwagih)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/display-dynamic-data-using-shortcodes/#post-17858075)
 * Apologies, I’m not using a template. I’m using the ultimate member plugin. This
   plugin creates user profiles as a page, not templates.
 *  Plugin Support [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * (@hamza1010)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/display-dynamic-data-using-shortcodes/#post-17863194)
 * Hello [@amirwagih](https://wordpress.org/support/users/amirwagih/),
 * Thanks for contacting us,
 * I hope you are doing well, We have replied to the support ticket. Please follow
   up there.
 * Thanks & Regards
   WP Experts Support Team

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display dynamic data using shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

## Tags

 * [dynamic data](https://wordpress.org/support/topic-tag/dynamic-data/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/display-dynamic-data-using-shortcodes/#post-17863194)
 * Status: resolved