Support » Plugin: Simple Fields » Only first letter is displayed from repeatable fields

  • Resolved Sprutt


    Hi and thanks for a great plugin!

    I’m making a listing of software for my portfolio and I’m using a single repeatable textfield, and add another item for each software. It’s all working fine except from the fact that it’s only echoing the first letter in each item.

    What’s even more odd is that I’m using an identical setup for another listing on the very same page, and that reads out fine.

    My embed code looks like this:

    $software_values = simple_fields_values("software_ex");
    foreach ($software_values as $values) { ?>
       <div class="about-info-software"><?php echo $values["software_ex"] ?></div>
    <?php } ?>

    I bet it’s something simple, but I would love some help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pär Thernström


    sounds very strange indeed. what about do you get if you in the look write

    print_r( $values );



    That resolves the problem, thanks alot!

    May I as a PHP newbie ask what the difference between the two is?

    I am an having identical issue where I have multiple field groups on one page, but for some reason, this one with the same code only outputs the first character:

    $repeatable_field_values = simple_fields_values("sport_text");
    foreach ($repeatable_field_values as $values) { 
    print_r( $values["sport_text"] );

    This only outputs the “b” in basketball.

    Any help is appreciated.

    Nevermind, I fixed two seconds after i posted my question…

    needed to just do this:

    echo $values;
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only first letter is displayed from repeatable fields’ is closed to new replies.