Redirect to registration page instead of login page.
Posting this here also since no help was offered in the other forum...
I need some help. I have created a landing page for my listings. The landing page has the following if statement
if ( is_user_logged_in() ) {
echo '
<p style="text-align: center;"><a class="buy_button" href="http://bla-bla.com/create-listing/" data-mce-="">Create a Listing</a></p>
';
} else {
echo '
<p style="text-align: center;"><a class="buy_button" href="http://www.bla-bla.com/create-listing/" data-mce-="">Create my Account</a></p>
';
}
I need to change the redirect if they are not logged in to register instead of login. I don't think this text is very user-friendly
You must first login or register to Create a Listing.
I think the user experience would be much improved if they would see the registration page instead of a red warning box on the login page. Where can I change the redirect to register instead of login? Thank you