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!
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
You must be logged in to reply to this topic.
This topic is: resolved