Alter SQL query to return posts with unique custom field value, no duplicate values
If you have several posts with the same value, but you want only the most recent ones with any value, as long as values don’t get repeated, you’r best bet might be running two loops on the same query: /* Fetch all possible values – use this to order the results and define which get … Read more