User dashboard shortcode added in new tab shows admin info for all members
to create a new tab on the member page, and inside the tab I added a shortcode to show a user dashboard for another plugin.
My problem is that the admin user dashboard is being shown on all of the buddypress member pages, not just mine (when I am logged in; haven’t tested when I am logged out).
This is how I entered the shortcode:
echo do_shortcode(sprintf (‘[XXX-dashboard author=%d]’, $userId ));
Any help would be appreciated.
- You must be logged in to reply to this topic.