What am I missing?
$cat_post = new WP_Query( array(
'posts_per_page' => 1,
'category__in' => array(7))
'post_type' => array(
'post',
'local-news',
'government-news',
'sports-news'
),
);
unexpected T_CONSTANT_ENCAPSED_STRING
What am I missing?
$cat_post = new WP_Query( array(
'posts_per_page' => 1,
'category__in' => array(7))
'post_type' => array(
'post',
'local-news',
'government-news',
'sports-news'
),
);
unexpected T_CONSTANT_ENCAPSED_STRING
Solved
$cat_post = new WP_Query( array(
‘posts_per_page’ => 1,
‘category__in’ => array(7),
‘post_type’ => array(
‘post’,
‘local-news’,
‘government-news’,
‘sports-news’
)
));