I’ve been looking everywhere for days for information about having more control over my posts/categories. I want to hide certain posts from certain posts, even if they share categories (not sure if that makes sense).
All the information I can find online is to hide a post from search, RSS or the blog page. And all the code seems to be site/theme-wide and not for individual posts. I’m sure there’s an easy way to do this, but I just can’t find anyone writing about it anywhere.
Any clues? Do I even make sense?
]]>Basically I have a category called “Haiku.” I’m using a plugin to hide that category from the main feed and from RSS feeds.
Now what I want it for it to also be hidden from the monthly archives BUT NOT hidden from its own category archive. So if you go to the “January 2020” archive you won’t see them but if you click on “Haiku” it will take you to that category page and they will be seen there.
This plugin has an option to also hide from archives but only ALL archives, which means the “Haiku” category archive is blank because they’re all hidden if you select that option. Help! Thanks!
]]>To verify that this wasn’t a browser cache issue, I navigated to the page with a different browser. I also test it with a non-admin user account logged in.
]]>It would be great to have the hide post functionality (checkboxes to hide on front page, category, etc) within the quick edit menu on the admin side.
Thanks.
]]>In this case, it’s not bad – because the posts are all mine – but if someone posts something offensive to the group and it gets pulled into my website: I want it to disappear from my site after I deleted it on FB
What can be done to make the plugin not pull deleted posts anymore?
]]>I’ve also using a special search plug-in, where it doesn’t display posts if they are in a specific category.
Or other “hidden” functions like rss or something that can expose addressed…?
…and how do you disable those?
We use the Search & Filter Pro plugin and I’m wondering if there is a way not to show any posts/result until actually filtering?
Thanks.
]]>I found a plugin that can hide certain posts from homepage, but the plugin option doesn’t appear for posts created by this plugin.
I found code that lets you hide posts by specific categories, but I couldn’t get it to work with this… first, when I use the code as is (and replacing xx with my number as it instructs) – it hides nothing. When I replace the cat with tribe_events_cat and my number in the xx, it hides EVERY thing… I feel like there’s some way to tweak this code that could make it do what I want it do…. but I’m stuck…
Any help?
Here is the code:
function exclude_category($query) {
if ( $query->is_home() ) {
$query->set( 'cat', '-xx' );
}
return $query;
}
add_filter( 'pre_get_posts', 'exclude_category' );
Can anyone help me tweak the code?
]]>with thanks
]]>