WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] Two categories displaying posts from ALL categories, help! (4 posts)

  1. orwhateveryoudo
    Member
    Posted 1 year ago #

    On my page http://www.orwhateveryoudo.com/recipes I am trying to create a recipe index. My issue is that the two categories "Main Dish" and "Side Dish" appear to be displaying posts from ALL categories. Please help!

    I am a complete coding rookie, so please excuse any simple errors I may have made with the code.

    Below is the code as it is on my site to display what you see at the link...

    Beef
    [catlist name=Beef numberposts=-1 orderby=title order=asc]

    Breads
    [catlist name=Breads numberposts=-1 orderby=title order=asc]

    Breakfast
    [catlist name=Breakfast numberposts=-1 orderby=title order=asc]

    Chicken
    [catlist name=Chicken numberposts=-1 orderby=title order=asc]

    Dessert
    [catlist name=Dessert numberposts=-1 orderby=title order=asc]

    Main Dish
    [catlist name=Main Dish numberposts=-1 orderby=title order=asc]

    Pork
    [catlist name=Pork numberposts=-1 orderby=title order=asc]

    Seafood
    [catlist name=Seafood numberposts=-1 orderby=title order=asc]

    Side Dish
    [catlist name=Side Dish numberposts=-1 orderby=title order=asc]

    Soup
    [catlist name=Soup numberposts=-1 orderby=title order=asc]

    Thanks in advance for any help you can offer!

    http://wordpress.org/extend/plugins/list-category-posts/

  2. orwhateveryoudo
    Member
    Posted 1 year ago #

    Also, just as an FYI, I checked the posts in question to make sure they weren't labeled incorrectly. ALL of my posts are in the "blog" category, but the incorrectly placed posts are labeled in the appropriate category.

  3. fernandobt
    Member
    Plugin Author

    Posted 1 year ago #

    The problem is probably because of the space in the name of the category. Try this:
    [catlist name="Main Dish" numberposts=-1 orderby=title order=asc]
    [catlist name="Side Dish" numberposts=-1 orderby=title order=asc]

    Or use the category slug instead, probably "main-dish" and "side-dish".

  4. orwhateveryoudo
    Member
    Posted 1 year ago #

    THANK YOU!!! The quote around the cat names worked!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.