Sort by custom date field
-
<?php query_posts( array( 'post_type' => 'television', order_by => 'meta_value&meta_key=date', order => 'desc') ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
Pretty straight forward – however it’s not working.
Once the sorting issue is covered, I would like to display only the month and year of the post.
Any pointers would be greatly appreciated! 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Sort by custom date field’ is closed to new replies.