redirect on login (not to profile or dashboard)
-
is it possible to redirect a user with “read” capability to the main homepage, from the wplogin.php
and the admin to the admin sectioni found this…
Open your wordpress/wp-login.php file, and find this line: $redirect_to = admin_url(); and replace it with this: $redirect_to = get_option('siteurl');
but this also redirects the admin to the main page…
and in the main homepage i have a horizontal menu button that says members, and when the “member” is logged in i would like the membercontent + member logout in a list… but how to combine that?
i’ve got:<?php if(current_user_can('read')){ ?> <li><?php wp_list_pages('&exclude=104&sort_column=menu_order&title_li='); ?></li>
how to insert a logout button?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘redirect on login (not to profile or dashboard)’ is closed to new replies.