WordPress.org

Support

Support » Plugins and Hacks » Exclude subcategories in archives page

Exclude subcategories in archives page

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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

    This thread might help…
    http://wordpress.org/support/topic/141648

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