Answer the question
In order to leave comments, you need to log in
How to split search result template by products in Woocommerce?
I want to use my own product search result template. It is currently merged with the archive-product.php template. As far as I understand, I should write the if (! is_search() condition in it, but I don’t understand how exactly to register all this in order to redirect to my template page.
How should it look like inside?
if (! is_search() ) {
//...
} else {
//...
} ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question