Hot answers tagged

1

If I were you, I would likely use the posts_search_orderby hook to change the search ORDER BY clause, because that way, the sorting would work with pagination. So for example in your case, you would want to sort by the post type like so: (well, if the "product posts" is of a different post type?) // In functions.php: add_filter( '...


Only top voted, non community-wiki answers of a minimum length are eligible