I have custom filed that I'm putting in my date like this 02/12/12
which is mm/dd/yy how can I sort all my post's bast on this date that I am manually making/imputing.
In my loop i am doing this
<?php $myinventory = new WP_Query('post_type=sermongs&showposts=10&meta_key=Date&orderby=meta_value&order=DESC'); ?> <?php //replace inventory with whatever you called the post type ?> <?php if($myinventory->have_posts()) : ?> <?php while($myinventory->have_posts()) : $myinventory->the_post(); ?> <?php endwhile; ?> <?php endif; ?>
Also my Custom Filed Template looks like this
label = Example: ---- 02-22-2009 -----
type = textfield
size = 20
but its sorting only the 02 and 12 which is my month and date but its not getting to the year which is very important too. how can i make it look at all numbers including year?
Can some one plz help me thanks.