wp query – How can I display a category page with future sub categories?

Question

In a recent project I had to build a custom category page.

On this parent category, I display sub categories.(just thumbnail and title)

Some of these subcategories’posts will be published in future.
In subcategory page, I managed, thanks to the answer given here, to display future and published post together and add a special class to future posts, to add an overlay with a message (eg:”coming soon”).

Is it possible to do the same in a parent category with the subcategories thumbnail ?
-display all published and future subcategories (subcategories in which post will be published in future)
-add an overlay on it and make the “future” subcategorie unclickable”..

Thanks for your help..

0
blogob 1 month 2021-04-13T06:46:58-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse