Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $loop = new WP_Query( array( 'post_type' => 'event', 'posts_per_page' => -1, 'orderby' => 'meta_value', 'meta_key' => 'start-date', 'order' => 'ASC', 'post_status' => 'future' ) );
- while ( $loop->have_posts() ) : $loop->the_post();
- ?>
- <h3><?php the_title(); ?></h3>
- <!-- Other post stuff -->
- <?php
- endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement