Skip Navigation

[Résolu] Conditional output based on posts dates

This support ticket is created Il y a 7 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

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

Dernière mise à jour par toolset-dave Il y a 7 années et 2 mois.

Assisté par: Shane.

Auteur
Publications
#573841

Hi, post has two dates (date of creation and date of change) and I want to display by conditional output if there is any change. I find out that by default the date of change is the same as date of creation so I want to show some text only if the dates don´t match. I tried this, but it does not work:

[wpv-conditional if="('[wpv-post-date type="modified"]' ne '[wpv-post-date]' )"]
I.e. dates don´t match.
[/wpv-conditional]

#573893

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Screen Shot 2017-09-26 at 2.33.32 PM.png

Hi Dave,

Thank you for contacting our support forum.

Take a look at this screenshot

As you can see the conditional works and that it shows your text when the 2 dates are different.

Is it always showing blank for you ?

Please let me know.
Thanks,
Shane

#574075

Hi Shane,

sorry for the post. I have cleared the cache and it works now.