• Resolved 4en1vanm

    (@4en1vanm)


    Is there a way I can list the child category names not the posts – see below

    Parent Category A
    – Child Category A1
    – Post A1
    – Child Category A2

    What I would like to do is list Child Category A1 and A2 with links to the posts within each child category

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

    (@zymeth25)

    You cannot do this automatically with this plugin. You would have to write a separate shortcode for each child category, like this:

    [catlist name="Child Category A1" catname=yes]
    [catlist name="Child Category A2" catname=yes]
    hatisenang

    (@hatisenang)

    Hi, I’m also interested in displaying posts under categories in hierarchical order like described above, I was wondering if it is possible to automate this by creating a custom template instead of manually writing separate shortcodes? Thank you.

    Plugin Contributor zymeth25

    (@zymeth25)

    Hi @hatisenang

    I have drafted a basic solution.

    https://gist.github.com/zymeth25/4cb9f17a4b7a50287f6dc64a68faa3d9

    If you need something more complex it shouldn’t be too difficult to expand the code if you are familiar with PHP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List Child Category Names’ is closed to new replies.