If wp_redirect() function not working in wordpress !

wp redirect function not working
wp_redirect

If that’s not working than do that by Jquery method. Add this to footer.php file.

You can add your conditions ..mine example is if user not logged in and category name is solution than redirect to work page…
<?php if ( !is_user_logged_in() && in_category('solutions')){ ?>
<script>
window.location='http://nstplanet.com/nst-work/';
</script>
<php } ?>

You can comment below if you stuck in to make any conditions.

If this help you then.. Can you buy a Cup of Coffee for me by nst webcreation paypal--OR-- nst webcreation blog coffee cup

Published by

NST

Myself Narender Singh Thakur ( NST ) and i share my Experience/Knowledge and Tricks for folks and beginners to solve their issues while making websites through this Planet.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Click to Chat