| User | Post |
|
2:47 am August 6, 2011
| rhand_agape
Member
| | | |
|
| posts 3 |
|
|
I was wondering if I could show a different landing page per user group on a registered memebers site only using a theme like: http://www.studiopress.com/demo/enterprise.html . I do see I can show different categories, tags, custom fields and menu items per user or user group. But what if I would like page teaser x, post teaser x, slider x with page text x to be shown to group A and slider y, page teaser y and so on for group B? I would basically like to use one WordPress installation, but different menus, sidebars, sliders per user group. In brief, a different landing page and other pages per user group after logging in using a single WordPress installation. Is this perhaps possible using Role Scoper conditional tags? Or would I be forced to use different WordPress installations and drop this idea?
|
|
|
2:48 pm August 10, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
There might me a plugin or theme that provides that type of functionality, but I'm not aware of it. So this would require some custom development.
Role Scoper does not hide blocks of content via shortcode.
|
|
|
10:25 pm August 15, 2011
| rhand_agape
Member
| | | |
|
| posts 3 |
|
|
Thanks for the reply Kevin. I decided to use one landing page and hide categories, page and menu items when need be using Role Scoper. I only need certain titles and widget to have different content per user group. I was looking for a possible conditional statement. You gave this as a hint:
// substitute actual group ID here (id argument in edit links on User > Role Groups)
$group_id_in_question = 9;
global $current_user;
if ( isset( $current_user->groups[ $group_id_in_question ] ) ) {
echo "hhh";
}
But that did not work using my user group nine. I added this code to a php widget and a widget logic widget to see if I could get it to load only when a user (user 6) would be logged in in belonging to a certain group. Somehow the widget with this code would never load.
|
|
|
10:27 pm August 15, 2011
| rhand_agape
Member
| | | |
|
| posts 3 |
|
|
I also tried
$group_id_in_question = 9;
$current_user = wp_get_current_user();
$user_id = $current_user->ID;
if ( isset( $current_id->$group_id[ $group_id_in_question ] ) ) echo "www";
else
echo "hhh";
and it did not load www nor hhh within that widget using this code. I am at a loss..
|
|
|
7:52 am August 17, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
If you can't get anything to display in the widget, this is not really a Role Scoper issue. Sorry, but I just don't have the time to walk you through that right now.
Temporarily turning on WP_DEBUG (in wp-config.php) might be helpful.
|
|