How to hide a post
I want to put links to a few posts in my sidebar….so that when a user clicks this link, it redirects them to that post. But I don’t want this post to appear in the normal main content flow of blog posts. Anyone know how I can accomplish this? Is there a way to hide a post from the main content area?
create new category, exclude it from main content.
If you by “links” mean post title, than lookout for related plugin, or you can use something like this:
I don’t know what you’re looking for. But I’m developing a plugin which helps to display recent posts from a single category or multiple categories.
Project on github – https://github.com/prasannasp/Custom-Recent-Posts-Widget
Mail me if you want this plugin. I’ll forward the zipball. BTW, I’m using the same plugin in my site. (5th item in the sidebar)
I’m trying to put a link in my sidebar, which links to one of my posts. But…when i create this post…I don’t want it to display in the normal flow of posts in the main content. I only want this post accessible through a link that I will display in my right hand sidebar. So……I’m wondering if there is a plugin out there that someone is familiar with…that will give you the ability to hide a post from the normal flow of blog posts in the main content. BUT…still allow the user access to this post if I create a link for it in the sidebar…
No you don’t. Let me put it this way. Lets say in a category called “cars”, I have 3 posts. How do I show posts 1 and 3 in the main content section, but hide post 2. Also at the same time…if someone clicks on the “cars” category archives….I still want all 3 posts to show up in the results. I only want to hide post 2 from the main content section….I don’t want it completey hidden from the archives and search results
Make two categories (“cars” and “carsfront”).
Assign all car posts to “cars”, and only assign the ones for the front page to “carsfront”.
Then, make sure to exclude “cars” from showing on the homepage. But make sure “carsfront” is included on the homepage. (Graphene options -> Front Page Options)
Well, if they already all get assigned to cars… that’s fine. But, create a new category (“carsfront”), and assign only the car posts you want to display on the front page to the “carsfront” category.
But you have to make sure the front page options is set to display the “carsfront” category and not the “cars” category.
So, every car post will be assigned to cars, so when you click the “cars” category, you get all the car posts. THEN, each car post you want on the front page will ALSO be assigned to the “carsfront” category, which gets displayed on the homepage via the front page options.
Josh, Thanks for your help…but I don’t think I can accomplish what I want with this method.
Here’s my problem…sticking with the cars example. Lets say all my car posts are under the category “cars”. Now, I’m going to have a “car of the day” category…and I want this category to be hidden from the front page. So, I might have 10 posts under the “cars” category….and one post which will be the car of the day. This post will have two categories….”cars” and “car of the day”. If I exclude the “car of the day” category from the front page….the post still shows up…because it is also associated with the “cars” category.
Note – I want the “car of the day” post to have both categories….because I want it to show up in the results when someone views the “cars” category archives…..as well as the “car of the day” category archives.
Why don’t you just create a category called “frontpageposts” and set graphene to ONLY display posts from that category on the front page.
Then, whatever posts you want to display on the front page, you can keep the current category structure, but also assign them to the “frontpageposts” category.
You must be logged in to reply to this topic.