Home>Support>Showing recipes

Showing recipes

I want to add a Recipe section to the site www.warondiabetes.org. I can list the recipes in my main blog and then have them double listed as a catagory under a nav bar tab – seems to be cumbersome to have somehting appear twice. But, I don’t think I need to show the entire recipe if someone wants to scan. Any great ideas on how to show them? Help, please.

URL: http://www.warondiabetes.org

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    Hi pjruggiero

    Our Post Loop widget would work here. To make this work:

    1. Setup recipes as a category.
    2. Change your Blog page. Don’t set it to Blog anymore. You can do this by going to Settings > Reading, un-select that page as your posts page.
    3. Go to your Blog page, click over to Page Builder and insert a Post Loop widget. In the Additional field insert an argument like:

    cat=-x
    

    Where 2 is the ID of your new recipes category. That will make your blog page exclude recipes.

    4. Now go to your recipes page. Insert another Post Loop widget via Page Builder and insert an argument into the Additional field of the Post Loop widget that says:

    cat=x
    

    Almost the same as before, however this time we’ve removed the minus sign. Now we’ll only be showing posts from the category ID.

    Question: How do I find the ID of the recipes category?
    Answer: Go to Posts > Categories, click on recipes and then view the URL, in the address bar will be a single number, that’s the ID.

  2. 9 years, 7 months ago pjruggiero

    Andrew,

    Thank you so much. Seems pretty simple for a non-techie. Can you show me an example of the post loop? I have no clue what it looks like.

  3. 9 years, 7 months ago pjruggiero

    Andrew,

    Never mind about my question. I was showing my complete ignorance of what the loop does or is. It's code!

    Oh, by the way, I get compliments on how my site looks now – I can't thank you, or Siteorigin enough. It's simple and easy to use.

    Thank you for your help.

    Phil

  4. 9 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    Ahh sorry for skipping that. Have you used our Page Builder plugin before? My instructions involve having Page Builder installed, then on the given page you’d click over to the Page Builder tab found next to Visual/Text and insert a Post Loop widget. The widget handles all the code for you. You just need to insert your argument in the Additional field of the Post Loop widget. I think you’re following but I thought I’d just explain this part in case you aren’t.

    A quick update on our Widgets Bundle plugin. In that plugin we have a Post Carousel widget. It has a much easier to use interface for constructing your argument (the same thing we’re doing with cat=x). However that widget only has a carousel template right now and you need a blog template, so it’s not perfect for this situation. Just thought I’d mention it though:

    Page: Post Carousel

    Let us know how you do here and thanks for your positive feedback.

    (If you’re interested in what the Post Loop widget does, here is some background on the loop in general: http://codex.wordpress.org/The_Loop)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More