Featured Content
I categorize my posts into blog vs. recipe. My recipe posts are showing on my blog page. Is there a way around that?
(And vice versa so blog posts aren’t appearing on a recipe page).
Two ways to do this. The first would be to use the Category Archive, vs the blog template. So when your readers click on the Recipe page, they go to the grid archive, vs the blog layout. However that would not remove the recipes from the blog page.
The second way is to run a custom query on your blog template for the recipe page and another on the blog page. In the custom fields option for your recipe page you would add
in the name field – query_args
in the value field – cat=19
change the 19 to your recipe category id
Then for the blog template do the same but this time do
query_args
category_not_in=19
Again change that 19 to your recipe id.
Let me know if you have any issues.
What would the ID be? Where can I find that?
Wait… think I found it by going to the category page. 31. It still didn’t change anything.
Send your domain and login to jennifer@helloyoudesigns.com and I can take a look.
Was able to hop on. The recipe page is working like it should. The blog page, the code above for
category_not_in=31
did not work, so I was able to place
cat=-31
And that did the trick.
Thanks for fixing the blog page! I’d like the recipe page to still be in grid format… but when I do that, it shows all posts, not just recipes.
Also, any ideas for getting the slider off the recipe page?
I don’t think it will work with that custom grid archive. But if you would like it a grid, with no slider, then it is better to use the recipe archive, vs a blog template. Pretty much the same exact style.
Please login or Register to submit your answer