WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Combine child categories from 2 separate parents into one list

[Resolved] Combine child categories from 2 separate parents into one list

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You mean like:

    <?php wp_list_categories('orderby=name&show_count=0&hierarchical=0&hide_empty=0'); ?>

    Hi Michael,

    Perfect, thanks!

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

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Combine child categories from 2 separate parents into one list’ is closed to new replies.