Skip Navigation

[Closed] Looping through a custom types, custom fields!

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 9 years 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 9 years ago.

Assisted by: Caridad.

Author
Posts
#292067

I am trying to create a testimonials section. I've created a 'testimonials' type and attached the custom fields 'name' and 'quote' to it. How do I go about display these in the front end?

Any help would be greatly appreciated 🙂

#292620

You can use types_render_field() in your theme template.

<?php echo types_render_field( 'price', array( ) ); ?>

https://toolset.com/documentation/functions/

The proper file to insert these commands will be single-testimonial.php. You can make a copy of single.php and modify it.

https://codex.wordpress.org/Template_Hierarchy

Another option, is to use our Views plugin, this one requires no changes to your theme:

https://toolset.com/documentation/user-guides/view-templates/

The topic ‘[Closed] Looping through a custom types, custom fields!’ is closed to new replies.