WordPress.org

Forums

WP-dTree
[resolved] Exclude Categories from Monthly Archive (3 posts)

  1. shotrox
    Member
    Posted 2 years ago #

    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/

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. jircas
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-dTree
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic