BuddyDev

Search

[Resolved] Confused on finding settings…

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #26557
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #26560
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #26566
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #26568

    Okay, I found the error! Damn, I missed it too! Ahahahah this is the code I had in functions.php file:

    // was added
    if( !function_exists('redirect_404_to_homepage') ){
    
        add_action( 'template_redirect', 'redirect_404_to_homepage' );
    
        function redirect_404_to_homepage(){
           if(is_404()):
                wp_safe_redirect( home_url('/') );
                exit;
            endif;
        }
    }
    // end was added

    As soon as I deleted it, your plugin worked properly – but now I have to figure a code that would work (i.e. code that would re-direct to homepage instead of 404 page).

    Thank you for your patience and help.

    I can’t believe I missed that little snippet! Ahahahaha

    Okay, only 3 days lost on creating this website, not bad, not good – just the way the cookie crumbles Ahahahah

    Again, thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #26569

    Hi,
    Thank you.

    I am sorry for the inconveniences. It is goo dto know that finally you have resolved it.

    I will also look it in our next update and see if we can avoid the 404 being thrown.

    Best Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #26570

    Okay, sounds great! Thanks.

  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #26588

    Thank you.

You must be logged in to reply to this topic.

This topic is: resolved