• Resolved olafatorwp

    (@olafatorwp)


    Hello, thanks for great plugin.
    I want to have list of clients, which are subcategories of parent category “Klienti” in my portfolio.
    I tried: [a-z-listing post-type=”portfolio” taxonomy=”project_category” terms=”klienti” display=”terms”] but it lists all portfolio categories including types of work such as graphic design, logo, campaign…

    Thanks a lot for help.
    Olaf

    • This topic was modified 6 years ago by olafatorwp.
    • This topic was modified 6 years ago by olafatorwp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    This plugin cannot filter posts by terms that are children of a specific parent term. It can only filter by a list of terms or a list of excluded terms. The plugin can, however, show taxonomy terms themselves filtered by a shared parent. You can’t mix posts with taxonomy terms in the same listing.

    To show taxonomy terms (not posts) that are children of a single parent term:

    [a-z-listing display="terms" taxonomy="project_category" parent-term="42"]
    

    The parent-term needs to be a term ID, not a term name or slug.

    Your list will show only direct children of the parent-term, but you can extend this to include grandchildren by appending get-all-children="true":

    [a-z-listing display="terms" taxonomy="project_category" parent-term="42" get-all-children="true"]
    
    Thread Starter olafatorwp

    (@olafatorwp)

    Hi Daniel,
    now it works great, thanks a lot!
    Olaf

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List of subcategories of parent category’ is closed to new replies.