Saltar navegación

[Resuelto] Conditional that must equal date field of parent

This support ticket is created 3 years, 8 months ago. 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.

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

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh 3 years, 8 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2471225

Hi

I am trying to make a conditional that shows a different image when the date of the loop item parent is different on an event.

Friday = image 1 (dark host logo)
Saturday = image 2 (light host logo)

i have got the 'ne' conditional to work:

[wpv-conditional if="( $(wpcf-event-date).item(@host-event.parent) ne '1668124800' )"]
<img src="[types field='logo' size='full' item='@host-event.parent' url='true'][/types]" width="30px" ></img>
[/wpv-conditional]

Not i am looking for the solution to make the 'eq' friday work.
this is the raw timestamp of the date field: 1668124800.

The image shows on the ne but not on the eq, what im a doing wrong?
can you help me out?

Thanks!

#2471311

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems this is a duplicate Ticket.

We will continue with the following original Ticket:
- https://toolset.com/forums/topic/conditional-that-must-equal-date-field-of-parent/

You are welcome to close this ticket.