<?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
(
)
;
?>