I had a post type music. For which i created custom field Music length. Which store music duration in this format like 01:50 I want to display post on order by Music length. I had use both order by meta_value and meta_value_num. But it does not work. My code to get post is:
<code>
$args = array(
'post_type' => 'music',
'meta_key' => 'length',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'posts_per_page' => 10
);
$pop_posts = new WP_Query( $args );
</code>
My question is how to order the post by its meta value in semicolon format(01:50, 02:46, 03:04, 02:37). So the post with meta value 03:04 comes first then 02:46 and so on! Is there any way?