Skip Navigation

[Resolved] Saving Cred Generic Fields Data & Accessing IT

This support ticket is created 7 years, 2 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.

Our next available supporter will start replying to tickets in about 1.37 hours from now. Thank you for your understanding.

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)

This topic contains 16 replies, has 3 voices.

Last updated by Timothy 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#567304

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

Thanks for clearing up the confusion.

The field data can be accessed by using the method described in this post above.

https://toolset.com/forums/topic/saving-cred-generic-fields-data-accessing-it/#post-567177

Thanks,
Shane

#567585

Ok, I've got this working now using the index attribute, thanks. This is the code that outputs an image from the cpt that is selected in the generic field.

           [types field='element-image' id='[wpv-post-field name="wpcf-faqs-element" index="0"]' size='medium' align='none' resize='crop'][/types]
 [types field='element-image' id='[wpv-post-field name="wpcf-faqs-element" index="1"]' size='medium' align='none' resize='crop'][/types]
 [types field='element-image' id='[wpv-post-field name="wpcf-faqs-element" index="2"]' size='medium' align='none' resize='crop'][/types]
 [types field='element-image' id='[wpv-post-field name="wpcf-faqs-element" index="3"]' size='medium' align='none' resize='crop'][/types]

Tim