• Resolved tclhs

    (@tclhs)


    Am using plugin for pages with categories (have plugin to add category to pages).
    If I include child_categories=false in shortcode, the plugin returns an empty list, even though published pages exist with the parent category.
    This applies whether or not the category has children.

    Have set up a test page to illustrate this (see link).

    Thanks for a great plugin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Can you share the shortoces used on your test site?

    I am unable to reproduce this in my tests.

    • This reply was modified 6 years, 9 months ago by zymeth25.
    Thread Starter tclhs

    (@tclhs)

    Sorry for delayed reply, was away.

    The 2 shortcodes are:

    [catlist name=”thurcaston” catname=”yes” catlink_tag=”h2″ class=”tclh_catlist” orderby=”menu_order” excludeposts=this]

    [catlist name=”thurcaston” catname=”yes” catlink_tag=”h2″ class=”tclh_catlist” orderby=”menu_order” excludeposts=this child_categories=false]

    Plugin Contributor zymeth25

    (@zymeth25)

    By default the LCP plugin only lists the “post” post type. I’m surprised your first shortcode gets any results at all because it shouldn’t, I guess it has something to do with your other plugin.

    You need to use the post_type shortcode parameter to specify which post types you want to include. post_type=page will list pages only while post_type=page,post will inculde both regular posts and pages.

    • This reply was modified 6 years, 8 months ago by zymeth25.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List empty when child categories set to false’ is closed to new replies.