[Plugin: wpNamedUsers] 404 after assigning permissions
-
Hi
I am making a client area in WordPress using wpNamedUsers but am struggling a bit with it. My set up is this:
- Client page
- 1 Sub-page under that for each client
- I am using WordPress’ conditional statement, if (is_user_logged_in()) in my client template file to show the list of client pages in a sidebar if the user is logged in. If not, then it shows the login form. The code for this sidebar is below.
- I have a user with subscriber permissions for each client.
- Each user is then assigned viewing permissions for the correct page using wpNamedUsers
When no permissions are set on any of the client pages then all of the links to them show up as one would expect. I then go through each of the client pages and assign the correct user to be able to view that page. As I would expect, the links to the other client pages disappear from the sidebar when logged in as a particular client. The problem comes in when I try clicking on the logged-in client’s pages – I get a 404 error.
Anyone have any ideas why? The code for my sidebar links are:
<div class="block-side"><!--NAVIGATION SUB--> <?php if (!is_user_logged_in()) { include('request-login.php'); } else { if($post->post_parent) { $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); } else { $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); }; if ($children) { echo '<h3>Your Projects</h3><ol>'.$children.'</ol>'; } } ?> <!--end #nav-sub--></div>
Thanks
Mike
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: wpNamedUsers] 404 after assigning permissions’ is closed to new replies.