query_posts is not working for search loop
-
I am trying to get custom results of search request , I need to get posts with some ID and cat ID , like this:
$args = array( 'cat' => 20, 'post__in' => array( 23, 45, 45, .. ) ); query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); ......But it returns all posts in Category ID “20”.
Who can help me , please
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘query_posts is not working for search loop’ is closed to new replies.