Query_Post mit mehreren Kategorien

0 Kommentare


< ?php query_posts('category_name=array('Nyheter', 'Movie')&showposts=4'); ? >

Alternativ:


< ?php $catIDs = get_cat_ID( $cat_name='Nyheter' ); $catIDs .= ',' . get_cat_ID( $cat_name='SecondCat' ); $catIDs .= ',' . get_cat_ID( $cat_name='ThirdCat' ); query_posts("cat=$catIDs&showposts=4"); ? >

Facebook Kommentare:

You can leave a response, or trackback from your own site.

Kommentar schreiben

Sicherheitsfrage: * Time limit is exhausted. Please reload CAPTCHA.

© 2017 Lightdisc.de - Impressum | Kontakt