• how can i use multiple meta_key and meta_value in query_posts?

    i used this code :

    query_posts('category_name=' .$site .'&meta_key=durum&meta_value=aktif&meta_key=yer&meta_value=' .$yer.'&meta_key=tur&meta_value=' .$tur.'&posts_per_page=1');

    but it gives only meta_value=aktif where meta_key=durum

    meta_keymeta_value
    durum — aktif
    yer — splash
    tur — single

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘using multiple meta_key and meta_value in query_posts’ is closed to new replies.