• i need an archive.php template where i can list either posts from a given category (witch is no problem) or posts with a given tag (witch is no problem too) or all posts within a given category AND a given tag … ist this combination possible?

    thx in advance

Viewing 1 replies (of 1 total)
  • Yes – it’s possible. Something like:

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'category_name' => 'News',
             'tag' => 'wibble',
    	'paged' => $paged
    );
    query_posts($args);
    ?>

    should do it.

Viewing 1 replies (of 1 total)
  • The topic ‘archive.php filter category AND tag’ is closed to new replies.