• Hey guys, Ill explain this as simple as possible:

    I want to query posts from wp_posts that are from category 3 and have 2 specific meta_keys (Area, Activity).

    I have tried most of the documentation, but need to figure out how to get multiple meta_values. Anytime I have used arrays for the meta_value it only picks up on the first one. So lets say I wanted to query Golf in Chicago:

    query_posts( 'cat=3&meta_value=Chicago,Golf' );
    while (have_posts()) : the_post();
    	the_title();
    endwhile;

    OR

    $args['meta_value'] = array( 'Chicago', 'Golf' );
    query_posts( &args );

    All these do is list all of the Chicago activities.
    Anyone any ideas??? Im very stuck and under some time constraints with it.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘query posts with multiple meta_values?’ is closed to new replies.