Different sidebars per user
-
Hello all-
I tried used the search and didn’t find anything, so i might as well just post it here. I want to have different sidebars depending on the user, how could i archieve this?
Also is there a way that i could set something up that whenever i create a new user a new page would be created with the username of that user?
Thanks!
-
Maybe something on the likes of is_category(”) function ? :S
bump =(
I want to have different sidebars depending on the user
Depending upon the user’s what? Username? Role? Logged in status? You need to be a little more specific.
Yeah, I’m sorry. But to be a little bit more specific, it’s on the user role. 🙂
Anyone ? 🙁
bump =(
Help please! 🙁
For the different sidebars based on user role, have a look at http://codex.wordpress.org/Function_Reference/get_currentuserinfo – specifically
$current_user->user_level
in the first example.What i want to do can’t be done with $current_user->user_level
Because i want a different sidebar PER user and it’s completly different and from what i understand if you create a sidebar for someone with an user level of 0 for examplace the members with an user level of 1 or higher will actualyl see what the one with 0 has.
I just tested this out and it tried with every user level and the only one that can i get to display is level 10 users, it seems that even if you assign an user level to a different role you cannot retrive it’s user level and i’m possitive that my code is right because i’m using the same code for all level and the only one i get to display is level 10 :s
- The topic ‘Different sidebars per user’ is closed to new replies.