how do I stop a post from showing on main page?
-
how do I stop a post from showing on main page? I have a category called “recipes” where I post the recipes that are in each post without the pictures and story. I want to have them available but not show up in the main posts page since the recipe is already in the original post.
The blog I need help with is: (visible only to logged in users)
-
Hi there,
We should be able to do this via CSS. In order to give you the right CSS code though, I’ll need to see this happening on your site. Currently, I see two posts “Introduction” and “Smokey Blue Cheese Dressing”. Is “Smokey Blue Cheese Dressing” an example of a recipe you want to hide?
-
Thanks and yes…I want a category of stand alone recipes people can easily print. Kind of like a reference section for the blog.
-
Hi there,
Great! In order to do this, we’ll want to set a specific category for these recipes. You can call it “Recipes” or whatever you would like. You’ll just want to make sure every recipe is added to this category. You can read more on categories here:
Then, we can use some CSS like this:
.home .category-ingredients { display: none; }That would hide the “Ingredients” category from your home page. You would just need to sub out “ingredients” for whatever category we decide to use.
Then, place that code under Appearance -> Customize -> CSS replacing all of the default text.
Next, to setup your page of all of your recipes, I would recommend using a category page as outlined here:
http://en.support.wordpress.com/category-pages/
This way, we can create a page that lists all posts in the “Recipes” category.
Finally, the make the recipes easy to print, you might want to consider using the Recipe shortcode explained here:
Can you give the steps above a try and let me know if you get stuck anywhere along the way?
- The topic ‘how do I stop a post from showing on main page?’ is closed to new replies.