Navigation überspringen

[Gelöst] Split: Create a date filter for a repeated number field – show first instance of repeating field group

This support ticket is created vor 1 year, 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.

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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 1 year, 7 months.

Assistiert von: Minesh.

Author
Artikel
#2777800

Also, is there some way to only display the first of the values from the multiple-instance field? That is, I want it to be found when people look for any of the publication dates, but I only want to display one of them on the front end.

#2777805

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can display the first instance of repeating field using the index attribute where index starts from 0.

So, to display the first instance of your publication date you will have to use the following shortcode:

[types field='year' format='FIELD_VALUE' index='0'][/types]