I have a custom /search-results/ page. I would like users only to have access to that page once they have submitted my custom search form and if they do try and access it directly they must be directed to my home page. The reason is that search results are from a wp_query for taxonomy so when users access it directly the page prints errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.