Wykaz category custom post według pola custom field
<?php $query_string2=$query_string .'&meta_key=event_date&orderby=meta_value&order=DESC&posts_per_page=12'; query_posts($query_string2); while(have_posts()):the_post(); ?> <div> //kod wpisu </div> <?php endwhile; ?> <section id="box-navi" class="cfix"> <?php wp_pagenavi(); ?> </section> <?php wp_reset_query();?>