Condition based on Logged-in user
-
My objective is to define a sidebar for each logged-in user. What would be the best way to associate sidebar content to logged-in user or at least to membership role (not wp role)
One thing I was trying to do is to work around with the bbpress user profile, but so far I have not been able to replace the Primary Widget Area. It does work with other conditions, like category
thank you
-
If you make the sidebar “private” as you would do with a normal post or page, only logged-in users will be able to see that sidebar.
Displaying a sidebar for specific user roles is not possible at the moment, but it will be possible soon in an extension.Can you explain in more detail the problem you had with bbpress user profiles?
Hi Joachim, thank you for your answer.
I was trying to use the bbpress user profile as a condition to make sure the sidebar was only shown to the logged in user.
For example I define a particular sidebar “sidebar-for-user-1) to be seen only by bbuserprofile “user-1” and category “cat-1” then the post has an empty sidebar
If I only establish as the condition to be seen by category “cat-1” then, any post with in that cat 1 shown the “sidebar-for-user-1”, but the same for all usersTo understand you correctly, do you want the sidebar to be displayed for specific logged-in users, or do you want the sidebar to be displayed with bbpress profile pages for specific users?
It is currently not possible to do the former, but as I mentioned you can make the sidebar “private” so that it will only be displayed to logged-in users.
The topic ‘Condition based on Logged-in user’ is closed to new replies.