Skip Navigation

[Closed] filed repeating displaying issue

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, 11 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 2 replies, has 2 voices.

Last updated by mido 11 years, 11 months ago.

Assisted by: Caridad.

Author
Posts
#11307

i'm trying to display repeated field in list form within php, but it's in form of shortcode in you docs!

    [wpv-for-each field="wpcf-test-upload-repeater"]

  • [types field="test-upload-repeater"][/types]
  • [/wpv-for-each]

i tried to work it out but the loop not working, it echo all the fields in one line !
<?php
do_shortcode('[wpv-for-each field="wpcf-design"]');
echo '

  • '.do_shortcode('[types field="design"][/types]').'
  • ';
    do_shortcode('[/wpv-for-each]');
    ?>

    Is there another method to echo it in php?

    #11326

    Dear Mido,

    You should run the do_shortcode on the whole string, like this:

    echo do_shortcode('<ul>[wpv-for-each field="wpcf-test-upload-repeater"]
    <li>[types field="test-upload-repeater"][/types]</li>
    [/wpv-for-each]</ul>');

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

    Regards.
    Caridad

    #11332

    Thanks

    The topic ‘[Closed] filed repeating displaying issue’ is closed to new replies.