Sort by a “date”
-
Hi guys
I wonder if someone could help me with how to do this.
I have three custom meta fields of a custom post type that are :
$group_race_day
$group_race_month
$group_race_yearessentially allowing the user to select a date from 3 dropdown menus. eg. 2 February 2010 ($group_race_day | $group_race_month | $group_race_year)
How can I use these three fields to allow these post to be sorted by the inputted date from a selected custom taxonomy?
I have created a new “summed” custom field from
$_POST[“group_race_year”].’-‘.$_POST[“group_race_month”].’-‘.$_POST[“group_race_day”]
that returns
1996-December-19
Is this sortable using PHP or SQL?
PHP is not really my thing?
The topic ‘Sort by a “date”’ is closed to new replies.