• Hi,
    Thanks for a nice plugin.
    I’m writing a food blog that has hierarchical categories, e.g.
    Recipes
    – By Course
    — Starters
    — Mains
    – By Type
    — Vegetarian
    — Meat
    — Beef
    — Poultry
    Kitchen Gear
    etc.
    I tried to create a page that lists all categories in a hierarchical way:
    [terms]
    <h3>[term_name]</h3>
    [/terms]
    This works, but all categories and subcategories show up on the same level.
    I tried different ways to group the subcategories by their parent category, but that seems to be impossible.
    What am I doing wrong?
    The page is still on my local development system, so I can’t give you a link.
    Thanks for your help.
    Thomas

    https://www.ads-software.com/plugins/w4-post-list/

Viewing 1 replies (of 1 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    You are not doing anything wrong, i guess the plugin doesn’t have the capability to display anything hierarchically. But it can be achieved for one level, like cat -> subcat.

    For that, as you have tried earlier, use group by parent. For groups, template should be like –

    [groups]
    <h3>[group_name]</h3>
    <ul>[terms]
    <li>[term_name]</li>
    [/terms]</ul>
    [/groups]

    Try it, maybe it would work for you too.

Viewing 1 replies (of 1 total)
  • The topic ‘Group subcategories by parent category’ is closed to new replies.