Skip to main content

How to show CCT items created in the past 5 days

Updated over a year ago

First of all, please, make a backup. To achieve this we will need a bit of code. Add the code to the Code Snippets plugin or into functions.php file of your current theme.

After that create CCT Query

Select your Content Type

Add such query for Created Date


Value should be set up like this

And as usual apply query in your listing

Did this answer your question?