Hi Minesh,
ok, this works, you are right I don't need to test if the field is blank. We can consider closed this ticket even though the issue with the default setting 0 still exists, please inform your developers.
>>>Meanwhile you have access to my site<<<, I'd like to let you know about what below.
Some time ago you helped me with this filter: https://toolset.com/forums/topic/help-on-conditional-date-lag-test/
Unfortunately on Jan 1st, 2024 all classifieds created in Oct, Nov and Dec 2023 (by 90 days before today) disappeared because filtered out by the filter due to the year change ! I tried to remove the "current year" part of the filter, but it doesn't work as expected anymore. BTW, at the time I set this filter in a classic view, later I changed the view to a (block) archive, but in the archive editor I don't see any place where I can set a filter like this ...
thanks
If you want split this issue please do it.
thanks
Nicola
Hello. Thank you for contacting the Toolset support.
If you are using Block view - can you visit the "Content Selection" tab and within that tab at bottom you should be able to see the "Query Filter" section.
Hello Minesh,
I am now using the block WP Archive instead of the view. In the archive there is no Content Selection tab ! consequently no Query Filters, that's part of the issue (the other part is the filter settings). If I'm not wrong I cannot use a view inside an archive, isn't it ?
thanks
oooops ! found ! I was looking just at the WordPress Archive Output ! sorry about this !
ok, now how can I set up a filter to show only posts published max 90 days before today ?
Hi Minesh,
I added your snippet as hide-old-classified (just renamed the funtion as func_hide_old_posts) but nothing changed, old posts still visible ... how the snippet is connected to the archive ? please check thanks