current user can / cannot
-
<?php if(current_user_can('read')){ <a href="http://www.somewebsite.com/wp/wp-login.php?action=logout">logout</a></li> <?php wp_list_pages('&exclude=104&sort_column=menu_order&title_li&depth=2'); ?></li> <?php wp_list_categories('orderby=name&title_li&include=125,9&depth=2');?> </li> { } else { <a href="http://www.somewebsite.com/wp/wp-login.php">login</a> ; } ?> <?php } ?>it’s not working… why?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘current user can / cannot’ is closed to new replies.