Grow your CSS skills. Land your dream job.

listing category posts

  • # February 6, 2013 at 4:11 pm

    Does anyone know how to get the wp_nav_menu function in wordpress to list the category posts under the category title? Right now, you can add a category to the navigation, but I want to add the actual post title under the category. so if I have category houses, it would look like

    House
    house 1
    house 2

    I know this can be done with pages, I want to do it with categories. Any idea?

    # February 6, 2013 at 5:57 pm

    I suppose you could accomplish it with multiple loops with a separate query. Not the most efficient way of doing it, but I think it might be your only choice. The title would have to be hard coded, I think.

    # February 6, 2013 at 8:05 pm

    This can be done, no code modification needed. When you’re in Appearance > Menus, click screen options in the upper right, check the posts box, and you should now be able to choose from your posts to add as menu items.

    # February 6, 2013 at 11:18 pm

    Yep. I forgot about that stupid little box. Thank you.

    # February 7, 2013 at 12:03 am

    Sorry, definitely didn’t see that we were talking about menus.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".