I am new to both PHP and WP so I am struggling with one thing:
I want to fetch all my post and then order it according to my meta-value "_mycounter" divided with the date in seconds from 1970 or what ever it was.
'orderby' => 'meta_value_num / date' is not right but how can I solve this? Is there anyway to add division/multiplication calculation in the way I am asking for?
$query = array( 'orderby' => 'meta_value_num / date', 'meta_key' => '_mycounter', 'order' => 'DESC' ); query_posts($query);