Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter houseofstrauss

    (@houseofstrauss)

    When I open a category page, I simply want to see its posts, not the sub-category posts mixed in with it. Can someone show me how to do this please. Hack, plugin, whatever?? (2.5)

    TIA.

    Thread Starter houseofstrauss

    (@houseofstrauss)

    So, here is my archive.php file with modified depth perameter according to codex page here

    ‘<?php wp_list_categories(‘depth=1′); ?>’
    Except it still wont’t filter out sub-categories on my main categories pages.
    ————–
    ‘<?php
    /*
    Template Name: Archives
    */
    ?>

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div class=”middle”>

    <h2>Archives by Month:</h2>

    <?php wp_get_archives(‘type=monthly’); ?>

    <h2>Archives by Subject:</h2>

    <?php wp_list_categories(‘depth=1’); ?>

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>’

    Any help appreciated … Ver 2.51

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude subcategories in archives page’ is closed to new replies.