All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
39 views

Set redirect_to in login based on a window.location.hash from url with a # in it

I have a site that I must redirect a logged in user to a page with a # in the url. Anytime this happens the only way to grab anything after the # is using JavaScript. I know I can grab what I want ...
0
votes
1answer
23 views

How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress

I have created a Custom Login Page using wp_signon in WordPress. The code is working fine. The only issue is I am not getting as to how I redirect user back to the Referrer Page after login. ...
1
vote
0answers
35 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
0
votes
0answers
18 views

Redirects to wrong address after logging in

Few days ago, I couldn't access admin page of my WP website, When I clicked buttons 'log in' or 'Get new password', it redirects to another IP address, not my domain or hosted IP address. I think ...
0
votes
0answers
14 views

Wordpress Multisite Login Redirecting Too Many Times

I know that this question has been asked before, but none of the solutions that I have found has solved my problem. I just installed a brand new multi site from scratch on my IIS server using sub ...
1
vote
1answer
17 views

Redirect user to previous page after signup from custom form

I've looked on here and found lots of references to this, but none have worked for me, probably because there must be something in the custom code I am modifying that I don't quite understand. Having ...
1
vote
0answers
31 views

How can I force the user to log in, even if they're already authenticated?

I am creating a link to a Wordpress page. In this scenario, multiple users may use the same machine and get confused about who is logged in, so every time they follow the link they must be forced to ...
0
votes
1answer
20 views

Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)

I can't find the answer for my question anywhere. I am trying to make a login redirect script, after login the user (depending on their role) will go to a certain page. I have currently a working ...
0
votes
0answers
24 views

Redirect after login when WordPress in subdirectory

I've a problem in my Wordpress website which is after I login from /wp-admin I didn't redirected to anywhere just keep seeing the login page without any errors. it was working fine when the site was ...
0
votes
2answers
88 views

How to use login_redirect with a user capability

The following code should redirect the user to a specific page if they have the manage_woocommerce capability or higher - but it doesn't and just goes to the main dashboard. add_filter( '...
0
votes
0answers
238 views

Redirect a login form, if referer contains URL query string parameter

I am trying to redirect a default WP login form, if it's HTTP referer contains some specific query string parameter. Scenario: I need to redirect new users (the ones who just created their passwords ...
0
votes
1answer
35 views

WordPress redirects to login page when I enter url.com/index.php

WordPress redirects to login page when I enter url.com/index.php or just http://url.com. When I enter with https the opens normally. Please help.
0
votes
2answers
37 views

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?
0
votes
0answers
24 views

redirect on login after validation

I have a login redirect that works, EXCEPT it doesn't fire on the first login after having validated the new users email address. Here is the code: function admin_default_page() { if (...
0
votes
1answer
65 views

User is logged in after Stripe payment, then redirected, but is then logged out again

In a plugin, after a Stripe Checkout payment is processed, an account is created, the user is logged in, and then redirected to a "thank you page". On this page, only about 1/3 to 1/2 of the users is ...
0
votes
0answers
20 views

Login redirects to home page and doesn't log in

When logging into the backend it redirects to the home page. If I try going to /wp-admin after it gives me the login again. I've tried deleting the htaccess, renaming the plugin and theme folders, ...
0
votes
1answer
81 views

wp-login.php?redirect_to=https problem

wp-login.php?redirect_to=https problem Please forgive me if I am posting in the wrong place but I am here to see if you can help me with some minutes of your time. The problem is a website showing ...
0
votes
1answer
23 views

Wordpress not loggin user and redirecting after custom registration

I am trying to make custom registration form in my wordpress site , the form is registered successfully but i couldn't login the user after registration and redirect to a custom url. this is the code ...
3
votes
2answers
3k views

Remember page before login page, redirect to that page after login

I have a woocommerce shop that only allows logged in users to make purchases. I have replaced my add to cart button with a "login" button if the user is not already logged in. This than brings them to ...
2
votes
1answer
176 views

Redirect User to Homepage if no other redirect is specified

Basically I want to write some code that decided wether to redirect a User to the Home page of the website or to the page that the user came from prior to logging in. I have this code which ...
2
votes
1answer
1k views

Can't access admin dashboard with wp-admin without /index.php after it

After I log in, I'm redirected to example.com/wp-admin/, which has a "ERR_TOO_MANY_REDIRECTS" message. If I type in example.com/wp-admin/index.php, everything works just fine. My wp-config.php looks ...
0
votes
1answer
57 views

Trying to login to my site redirects me to the first page

I'm trying to login to my website "domain.com/wp-admin/" however it will not show me the login page, I get redirected to the first page shown when I enter "domain.com". How can I fix this?
0
votes
1answer
59 views

Redirect user to specific link after login

I am new to wordpress so I will surely need more help than others to understand your answers. So, the question is: I have this website with a login page on home. Let's supose you are a member. If you ...
2
votes
3answers
110 views

How do I redirect a user when he is logged in after clicking on a menu

I would like to redirect my logged in users automatically to a next page if they press a button on my menu. I would like to make it that if you're not logged in you'll get on a registration page and ...
0
votes
2answers
2k views

PHP If user is logged in & on home page redirect

I'm a complete noob but trying to learn, and I'm stumped. I have a login page as my static homepage, and want to make an if statement, so that if the user is logged in, and goes to the static home ...
0
votes
1answer
75 views

redirect_to how to make it simply work with get parameter or similar?

I want, as an exception, do a redirect if a user reaches a point where he needs to be logged in, to the login screen, and as soon as he logs in and certian conditions are fullfilled (a flag set as ...
1
vote
2answers
2k views

Wordpress Admin Login Redirect Problem

I have a site that we have developed that we have just moved live. Another company has the domain name currently so they are redirecting to our IP and DNS. The website works fine and all forms are ...
1
vote
1answer
2k views

How to redirect user to a specific page based on username?

There are plugins to redirect a user role to a specific page, but is there one that can redirect a username to a specific page? I need userA to see only the page for userA. And userB to see only the ...
0
votes
1answer
297 views

stop customize.php redirect to login page if admin is not logged in

How can i disable /wp-admin/customize.php redirect to login page when accessed directly? I want to use customize.php if user logged in as admin, but when user is not logged in i want to disable the ...
0
votes
2answers
115 views

How to check User Role and redirect to specific page according to Role when login in Wordpress?

Can anyone tell How to check User Role and redirect to specific page according to Role when login in Wordpress? Thanks.
0
votes
1answer
2k views

Logout Redirect and also WP-login.php Redirect

I am not very advanced in php. I have this function that prevents wp-login.php access with redirection add_action('init','custom_login'); function custom_login(){ global $pagenow; if( 'wp-login.php' ...
0
votes
1answer
631 views

logout redirect only from admin page

How can someone (that has access in Admin area (/wp-admin/) backend), when he is already logged in, and he wants to logout (default WordPress Logout) but only from inside this area, to be redirected ...
1
vote
1answer
520 views

Login Redirect if Logged in from Specific Page

I was using a pretty standard login redirect script in my theme functions, however have learned that it is causing a bug with an integral plugin for my website. In short, within the plugin's front ...
1
vote
2answers
1k views

Redirect when accessing /login when logged in

I am using Theme My Login plugin to change the login page from "/wp-login.php" to "/login". My question is how do I redirect a user that has already logged in so that visiting "/login" instead takes ...
0
votes
1answer
282 views

Custom form redirect after login

I have a custom form for logging in (in a modal window) that looks like this: <form name="loginform" id="loginform" action="<?php echo wp_login_url( get_permalink() ); ?>/wp-login.php" ...
0
votes
2answers
4k views

Woocommerce Login Redirect not working [closed]

I am currently trying to change Woocommerce redirect url for login only when users logged from a specific page. So first I tried that way in my template page: <?php woocommerce_login_form(array('...
0
votes
1answer
25 views

redirect_to ignoring the SSL

I have a site where I recently added an SSL certificate. Everything was working fine until I added the certificate. Sometimes when I try to login the login page reloads and no error message is shown. ...
0
votes
1answer
25 views

Redirect user on login using extra field value on login form

I have added a field to my login form with the login_form action hook as below add_action('login_form','select_contest_field'); function select_contest_field(){ //Output your HTML ?> <p class="...
0
votes
1answer
549 views

wp-login.php — redirect logged in users to custom URL

When the user visits /wp-login.php and is already logged in, how can I redirect them to a custom URL? I found the same question asked and answered, only relating on who to redirect to the admin panel ...
1
vote
1answer
985 views

Redirect user after login through woocommerce login page to page with his/her username?

As the title states I'm trying to redirect users after they log in through the woocommerce login form to their respective custom pages (http://example.com/accounts/username) So far I got this ...
0
votes
3answers
464 views

Redirect users not logged in to the standard login page (and back) from some posts and pages

I'm looking for a hand-coded solution to do the following: in some pages (so, not every page) I want to redirect the users NOT logged in to the standard login page: when they login, they are ...
0
votes
1answer
1k views

Woocommerce login to specific page or referrer

I setup a modified Woocommerce login form, to work with the membership plugin that I am using (Paid Membership Pro) with the help of this blog: Redirect after logging in. function ...
0
votes
1answer
511 views

wp-login.php redirect problem

I have plugin which redirects myweb.com/wp-login.php to custom login page myweb.com/member-login/ I want to check if current page is either wp-login.php or /member-login/ but does not work. code ...
0
votes
1answer
82 views

login redirect problem - db charset issue?

I've got a WordPress site which is failing to do the login redirect. I think it has to do with the DB charset. The access log: IP - - [09/Mar/2017:11:42:34 +0000] "GET /wp-admin/ HTTP/1.1" 302 4405 "...
3
votes
1answer
3k views

How can I include a query string with get_permalink

My login link uses wp_login_url( get_permalink() ) so that the user is redirected back to the page they were viewing, and not to the dashboard. However, this does not include query strings. So if a ...
0
votes
2answers
296 views

Custom redirect user after login based on metadata

I have a problem and would like some help: Scenario: Table: wp_usermeta According to the table above (wp-usermeta), which function could I use for all users with Special Plan after login being ...
0
votes
1answer
635 views

Restrict content access to logged in users

I would like to create the following functionality: A Wordpress website should be available ONLY to logged in users. If user is not logged in, he must be redirected to a custom page (currently ...
0
votes
1answer
34 views

How to modify the Wordpress comes with redirect

I found by domain.com/login or domain.com/admin will be redirected to domain.com/wp-admin, how do I modify them.
0
votes
1answer
915 views

Conditional redirect on login using referring URL

My clients site has a form only viewable to people that have a specific user role (custom). They are sending out a link to an RSVP page but in order to view that page the visitor must be registered ...
0
votes
2answers
246 views

Unable to log in as admin

Since today I'm unable to log in my website as admin, there is always a toolbox at the top of the site but it just shows some useless information. Adding /wp-login in my URL works, the IDs work and ...