WordPress.org

Ready to get started?Download WordPress

Forums

List category question (5 posts)

  1. VictorZ
    Member
    Posted 8 years ago #

    Hey guys! Is there a way to use the list_cats or wp_list_cats template tag to display the feed/feed-image only for one particular category instead of all of them? Or maybe use a custom construct in the template to traverse the category list and enable the feed option for one or more categories.

  2. chriggi
    Member
    Posted 8 years ago #

    My only idea is to use list_cats twice (or more): One list w/ feeds on, one without - and excluding the specific categories from the inappropriate list.

    But I not an expert. There'll be more helpful answers, I'm sure.

  3. VictorZ
    Member
    Posted 8 years ago #

    Thanks for your reply. In the case you have suggested the categories won't be sorted.

    I have 4-5 top-level categories and each category has 5-6 sub-categories. The sub-cat's are listed (with an indent) under the respective category. But I want to display the feeds link only for main categories and exclude the feeds link for the sub-categories. Hope it makes things clear.

  4. chriggi
    Member
    Posted 8 years ago #

    Ah OK - sorry no idea for that.

  5. VictorZ
    Member
    Posted 8 years ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.