I would like to know how to remove posts from a certain category from my homepage after a certain time period (but not expiring the posts).
My site is currently set to display my latest blog posts from category "Basic".
The "Basic" category has the following sub categories:
Basic
-- Announcements
-- Company Specific
-- Industry
-- Other
-- Third Party
-- -- Fisco
"Third Party" subcategory has weekly posts. All of the other subcategories combined add up to a weekly post. Consequently, half of my homepage content is from "Third Party" subcategory. I would like to set this up so that "Third Party" posts are removed from the homepage after 14 days.
pre_get_posts
filter, to get it working. edit your question with your tryouts or create a new question with more specific problems and somebody will help you out :)