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
- The topic ‘Display dynamic data using shortcodes’ is closed to new replies.