Ask your WordPress questions! Pay money and get answers fast! (more info)

Redirect after login with Sidebar Login WordPress

  • SOLVED

Hello!

How do I get the Sidebar Login plugin to redirect to a specific page after login?

This is the plugin: http://wordpress.org/plugins/sidebar-login/

I am not using it as a drag and drop widget, but rather in the template using the the_widget() function.

This is the site I'm using it on: iptar.org.

Do I need to edit the code to get it to redirect to a specific page? What do I need to do?

Answers (3)

2013-09-05

Giri answers:

Very simple.. Install this plugin

http://wordpress.org/plugins/peters-login-redirect/

PS: If you don't want to use any plugin, then use this code in your theme functions.php file

function wpq_login_redirect() {
return '/some-page/';
}

add_filter('login_redirect', 'wpq_login_redirect');


jfewell comments:

Doesn't answer the question I was asking about Sidebar Login, but thanks anyway. I solved it by installing WP Sidebar Login. Both of the solutions you proposed didn't work with Sidebar Login, so I just tried a different plugin altogether.

2013-09-05

Ross Wilson answers:

Pippin has a very simple login/redirect shortcode that can be added to your theme's functions.php as well
[[LINK href="http://pippinsplugins.com/wordpress-login-form-short-code/"]]http://pippinsplugins.com/wordpress-login-form-short-code/[[/LINK]]

2013-09-05

Francisco Javier Carazo Gil answers:

Look at here: http://wordpress.org/support/topic/plugin-sidebar-login-peters-login-redirect-plugin-sidebar-login-plugin