Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'post_type' => 'offers',
- 'meta_query' => array(
- array(
- 'key' => 'offer-status',
- 'value' => 'Active'
- )
- ),
- 'posts_per_page' => '3'
- );
- $offers_query = new WP_Query( $args );
- ?>
- <?php if ( $offers_query->have_posts() ) : while ( $offers_query->have_posts() ) : $offers_query->the_post(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement