Hi,
in a classic view template I'd like to show a message warning the post author that this post hasn't been updated for three months, but I cannot set the right conditional. I thought to use [wpv-post-date type="modified"] but in the conditional window WP standard post fields aren't listed. I could edit the condition manually, but how to test something like " if TODAY - [wpv-post-date type="modified"] > 90 " ?
Also, how can I set the same conditional in the block editor to filter out older posts ?
thanks
Regards
Nicola
Hello. Thank you for contacting the Toolset support.
I would like to know that do you want to only display the posts whose modified date is greater than 90 days from todays date? or you want to display all post but when a post falls in category whose modified date is greater than 90 days then you want to display some message?
Hello Minesh,
On the archive page (list of all posts, block editor) I'd like to add a filter to hide all posts older than 90 days.
I apologise for confusing conditional with filter, later I tried to use the Post Date filter, but I was't able to find a good one, I tried: modified date before Month LAST_ONE =3, but it didn't work. Please suggest.
Also, on the "My posts" page listing all current user's posts (classic view) I'd like to show a message for each post older than 90 days so that the user know that the post is hidden and needs a refresh or deletion.
thanks
Regards
Nicola
Can you please share problem URL and admin access details and let me review how you added your query filter.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
it seems to be working,thanks !
Please have somebody to write a guide about how to use this filter, it's pretty complex to understand.
Thanks
Regards
Nicola