bonny/WordPress-Simple-Fields — pull request #2 by samface (2012-01-26 21:41:54+00:00)
Title: Simple fields query posts

This update enables querying posts by simple field value. Example:

$args = array("post_type" => "books",
"sf_group" => "Book details",
"sf_field" => "Author",
"sf_value" => "Stephen King");

$my_query = simple_fields_query_posts($args);

About the arguments: $args can be all the usual WP_Query() arguments plus sf_group, sf_field, sf_value, sf_compare, sf_type and sf_order. The first two (sf_group & sf_field) are required to determine the simple fields meta key, sf_value is of course the value to look for, the others are optional meta query arguments.

I hope you find this update as useful as we do. :)