Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Redirect after login with Sidebar Login WordPress



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

This is the plugin:

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:

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

Answers (3)


Giri answers:

Very simple.. Install this plugin

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.


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=""]][[/LINK]]


Francisco Javier Carazo Gil answers:

Look at here: