Skip to:
Content
Pages
Categories
Search
Top
Bottom

User dashboard shortcode added in new tab shows admin info for all members


  • catonezillion
    Participant

    @catonezillion

    Hi,

    I used
    https://gist.github.com/modemlooper/fb70735dd78de7cd2032

    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.

    Cathy

    WP 4.7.1
    BP 2.7.4

  • You must be logged in to reply to this topic.
Skip to toolbar