Get post by DESC , ASC from custome field DATE picker
i want to custome post by ASC. i have some add some post in bachend one of the field date picker. i want to post by date which i set in date picker field
<?php $args = array( 'post_type'=>'upcoming_events', 'order' => 'ASC', ); global $more; query_posts( $args ); while (have_posts()) : the_post(); ?> <p><?php the_title(); ?></p> <?php $postdate = date('d-m-Y' , strtotime(get_field('date'))); echo $postdate; ?> <?php endwhile;?>
some post which i set date(datepicker cusomefiled) and title output is below
i want to
- The topic ‘Get post by DESC , ASC from custome field DATE picker’ is closed to new replies.