function WP_Query not correct
-
$loop = new WP_Query( array(
‘post_type’ => ‘my_post_type’,
‘posts_per_page’ => 12,
‘orderby’ => ‘post_date’,
‘s’ => ‘search_term’
));result show all post type and ‘s’ => ‘search_term’ not working
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘function WP_Query not correct’ is closed to new replies.