In posts there is in custom field named "color". I have custom search page template, and I would like to show search results only from that one custom field. How to limit search to look just in one custom field inside posts?
Assuming you are using post_meta this should help::
$color = 'red'; $the_query = new WP_Query(array( 'meta_key' => 'color', 'meta_value' => $color ));