Support » Plugin: WP-dTree » [Plugin: WP-dTree] Exclude Categories from Monthly Archive

  • Resolved shotrox

    (@shotrox)


    Hi
    I am creating a site with 4 different categories that each have their own page.
    Is it possible to show the archive (hardcoded) for just one category?
    I tried a few things with

    /<?php wpdt_list_archives(‘type=monthly’) ?>/

    but did not figure it out how to exclude other categories or choose only one category to display

    http://wordpress.org/extend/plugins/wp-dtree-30/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ulfben

    (@ulfben)

    Either use the widget and set “Exclude cats:” accordingly. Or, if you want to continue using the template tag, use exclude_cats.

    wpdt_list_archives('type=monthly&exclude_cats=1,2,4');

    Would exclude category ID 1,2 and 4.

    My site have sub-category. if a post belongs to both a parent category and a sub-category, the archive will display twice for this post. But I want to display once for the same post. how to fix this thing.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-dTree] Exclude Categories from Monthly Archive’ is closed to new replies.