All Questions
2
questions
1
vote
0
answers
419
views
Compare ACF date field (if exists) and post date and order DESC
I have an ACF date field (same format as post date) and in my Query I want it to be compared to the publish date of the post:
If erstelldatum is not empty use erstelldatum for order
If erstelldatum ...
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=...