WordPress.org

Support

Support » Plugins and Hacks » Hacks » wp_list_categories inside wp_list_pages?

wp_list_categories inside wp_list_pages?

  • tigonometry
    Member

    @tigonometry

    I’ve got a navigation setup that uses wp_list_pages and one of those is a list to the categories. Is there a way to do something like this:

    wp_list_pages
    
    if page = "Title for Category List"
    
    display wp_list_categories

    … and have it display like the rest of the site?

    I’m working on digitalroutellc.com if that helps. “Articles” is the title of the page that needs to display a dropdown list of the categories. Currently it’s a set of pages that uses a redirect to the category in question and it’s a little bit of a pain in the arse creating new pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • yes.

    is_page() and in_category template tags can be combined to produce the results dynamically.

    tigonometry
    Member

    @tigonometry

    I hate to sound like a ninny, but I’m new to functions and PHP in general. How would I go about doing this?

    Thank you for replying, by the way. Any and all help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_categories inside wp_list_pages?’ is closed to new replies.