• Is there a shortcode to display ONLY posts in the parent category and not to display subcategories?
    as I have set up something like this on my page
    <h3>My general category</h3>
    [catlist name=general-category]
    <h3>My subcategory</h3>
    [catlist name=sub-category]
    <h3>Another subcategory</h3>
    [catlist name=another-sub-category]

    so I don’t want results from the subcategories showing under the first general category header…

    Is there a way that I can exclude all subcategories using a shortcode? I think I could exclude them manually usuing the -sign (not sure is that works with name but am going to experiment – only I need to be able to do this whatever subcategories may be created in the future… please help!

    https://www.ads-software.com/extend/plugins/list-category-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter lady_r0gue

    (@lady_r0gue)

    please? my orphaned categories really need some parents! but I can’t display the parent categories and have the meddling kids popping up!

    Thread Starter lady_r0gue

    (@lady_r0gue)

    what I’m hoping for is something like[catlist name=generalgategory excludecategories=45,50] – but my local installation is so painfully slow trial and error isn’t really my favourite method!

    have you use <?php wp_list_categories(‘exclude=45,50’)?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: List category posts] Exclude subcategories’ is closed to new replies.