gd redirect

This topic contains 1 reply, has 2 voices, and was last updated by  Guust 9 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #45602

    hezekiah
    Buyer
    Post count: 115

    Hi. If a user clicks on the “Add Listing” link and they aren’t logged in, it’s redirecting them to the GD login page. I managed to redirect them to theme-my-login login page using the following snippet:

    add_action(‘init’ , ‘geodir_redirect_to_default_login’) ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST[‘geodir_signup’]))
    {
    wp_redirect(home_url().’/login/’);
    exit();
    }
    }

    However, when they login, they are redirected back to the homepage instead of the “add place” form like it should be. Pls am I missing out on any code? When I login using tml, it usually redirects to page before login. Not working with this. Any help pls. Site is trustorrun.com

    #45613

    Guust
    Moderator
    Post count: 29970

    That’s normal GD behavior.
    If you want to redirect to the previous page or some other page, you might find some other plugin for that.
    I am not familiar with the theme-my-login plugin, but there might be an option in there as well.

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount