
Allow admin to show login from anywhere in Wordpress.
Allow admin to show login from anywhere in WordPress. There are 2 ways to do so:
Use shortcode [loginform]. If redirect param is not passed, it will use the current page permalink as a redirect.
OR
Use shortcode [loginform redirect=”http://www.YOURDOMAIN.com/PAGE”]. If a redirect param is set, it will redirect the user to that page. Do note that the page must be on the same URL, it will not redirect to external URLs.
There is no setting for this plugin, just install it and use the shortcode [loginform redirect=”http://www.YOURDOMAIN.com/PAGE”] anywhere in the website. The param redirect should be set to the page where where you want to redirect after login, otherwise it will redirect to the current page. You can use it in the template files also by using following format:
<?php do_shortcode(‘[loginform redirect=”http://www.YOURDOMAIN.com/PAGE”]’); ?>
e.g.
/login-form-anywhere/ to the /wp-content/plugins/ directory[loginform redirect="http://www.YOURDOMAIN.com/PAGE"] in your pages, posts, or widgets. You can use it in the template files also by using following format:YES