Is there a way to specify custom content type fields in the arguments passed to WP_Query() aka query_posts()? E.g:
$args = array( ‘post_type’ => ‘asset’, ‘posts_per_page’ => -1 );
$loop = new WP_Query( $args );
I’d like to be able to use custom fields in WHERE and ORDER BY clauses without writing custom SQL directly. Thanks!
- The topic ‘[Plugin: Content Types] WP_Query and custom fields?’ is closed to new replies.