Passer la navigation

[Résolu] Conditional to show post title for posts within a week

This support ticket is created Il y a 2 years, 7 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 years, 7 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2651853

jum

Conditional to show post title for posts within a week

#2651885

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Also please yell me which view I need to check to see ethe conditional you used.

Thanks

#2653137

Christopher Amirian
Supporter

Les langues: Anglais (English )

Screenshot 2023-10-16 at 11.13.24.png

Hi Kaviya,

Thank you for the login info. It seems that you already have a function for that called "calculate_past_date" and it works ok.

If you check the screenshot attached, that is the condition which will show only items within the current 7 days. And the other one will show the outside boundary and it worked:

lien caché

Thanks,

#2653717

jum

Thanks for the support