[Resolved] how to query custom post type on search results
I created one custom post type called ‘members’ with different custom fields (with the plug-in custom field template). On the search.php I like to show the results of ‘members’ post type and the regular post type. Because members have to echo different custom fields I like to chance the design of the entry ‘members’. How can I query the custom post type ‘members’? If I use
<?php //The Query query_posts('post_type=members'); //The Loop if (have_posts()) : ?>
the query shows al members post and not only the one which contains the search results.
- The topic ‘[Resolved] how to query custom post type on search results’ is closed to new replies.