Skip Navigation

[Closed] Querying data

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 11 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Caridad 11 years, 9 months ago.

Assisted by: Caridad.

Author
Posts
#15208

I am using the example in the real estate site <a href="[wpv-post-url]">[types field="pics" width="80" height="60" proportional="true" align="none"][/types]</a>

My field "pics" has multiple entries. I am doing a property listing and I only want to show the first pic in the listing. This shortcode is yielding all the pics. How do I modify to select only the first entry. i.e. where pic= 1.

Thank you

#15225

Dear Charles,

Can you try using the index attribute? This should work:

[types field="pics" index="0" width="80" height="60" proportional="true" align="none"][/types]

Please let me know if there is anything else that I can assist you with.

Regards.
Caridad

The topic ‘[Closed] Querying data’ is closed to new replies.