All Questions
3
questions
1
vote
4
answers
5k
views
sort search results by custom fields using dropdown
On my search.php page, I have a "Sort By" dropdown that almost works exactly how I want it to --
<select class="dropdown-class" name="sort-posts" id="sortbox" onchange="document.location.href=...
0
votes
1
answer
1k
views
How to manage a particular "order by" for get_search_query()?
How to manage in the search.php file the order of a posts search query managed with the following code
<?php
echo sprintf(__('%s Zoekresultaten voor ', 'website'), $wp_query->found_posts);
echo ...
3
votes
3
answers
2k
views
Fulltext search in posts sorted by relevancy
I'm building a custom search page and what I need is to sort results by relevancy (eg. occurences of a keyword)
Using MySQL docs I've built this query:
SELECT ID
FROM $wpdb->posts
WHERE MATCH (...