Friday, October 28, 2022
HomeWordPress Developmentloop - Disguise outdated posts every year

loop – Disguise outdated posts every year


I’ve had an attention-grabbing enquiry from a shopper website we constructed (utilizing Further theme from Elegant Themes) and handle for a faculty. Every early September, when the varsity begins a brand new tutorial 12 months, they would favor it if the dynamically populated modules (resembling tabbed posts, posts carousel and weblog grid) had been empty and never displaying any content material from the earlier tutorial 12 months. However we do not wish to eliminate the ‘outdated content material’ (content material previous to Sept. 1st), so in case you would possibly must seek for it and discover it it ought to nonetheless have the ability to show as soon as you have discovered it.
I discovered a really outdated plugin that appeared to supply what we wanted however i daren’t set up it (https://wordpress.org/plugins/hide-old-posts/). It must be a worldwide perform fairly than a setting in every put up. I would like a capabilities filter writing that does the next: when displaying posts loop in date order (in carousel, weblog grid or tabbed posts), when September 1st is reached every year solely then show content material from Sept 1st onwards (of that 12 months) for the following full 12 months.
Does that make sense? Would possibly this be doable?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments