• it’s maybe easy for php aces :

    i have 4 categories : “band1″(id=2) “biography”(id=3) “records”(id=4) “news”(id=5)

    i would like to create a template category page for band1 so i call it “category-2.php”

    In it i would like a biography, the records they have made, and the last news about them.

    So after a quick search in the codex, my choice is for the query_post method.

    I try to display the “records” released by “band1”, it works fine with <? query_posts(array(‘category__and’ => array(2,4)));
    ?>
    but now i would like to add the “bio” of the band1 and the “last news”.
    So i write after the first query post array, a second one like this :
    <? query_posts(array(‘category__and’ => array(2,3)));
    ?>
    this second query_post array reset my previous one (wich was displaying the records).

    So i think i have a php array syntax problem and i’m sure that i can display what i want in a single line of query_post(array) !

    Now i’m looking for the good pal to help me 🙂

    thanx for your help !

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘query_post array’ is closed to new replies.