Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: profile sidebar – GOD HELP ME


Boone Gorges
Keymaster

@boonebgorges

If I understand your question correctly, you’ll want to think of it as a single widget that appears differently for different members.

Use http://wpengineer.com/wordpress-built-a-widget/ to build a new widget. In function widget(), figure out which user is logged as follows:

global $bp;

if ( $bp->loggedin_user->id == 1 ) {
/* Display the stuff you want user 1 to see */
} else if ( $bp->loggedin_user->id == 2 ) {
/* Stuff you want user 2 to see */
} /* etc */

Skip to toolbar