WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Combine child categories from 2 separate parents into one list (3 posts)

  1. exbionic
    Member
    Posted 5 years ago #

    Hi all,

    I was wondering if it would be possible to return a list of categories from 2 separate parent cats?

    Parent1
    -childA
    -childB
    -childC

    Parent2
    -childD
    -childE
    -childF

    ...And my resulting list would be:

    • childA
    • childB
    • childC
    • childD
    • childE
    • childF

    Hope that makes sense!

    If anyone can help I would, as ever, be very grateful.

    Cheers.

  2. MichaelH
    Member
    Posted 5 years ago #

    You mean like:

    <?php wp_list_categories('orderby=name&show_count=0&hierarchical=0&hide_empty=0'); ?>
  3. exbionic
    Member
    Posted 5 years ago #

    Hi Michael,

    Perfect, thanks!

    I think this was a case of expecting a difficult solution without seeing the easy one - D'OH!

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic