Support

Account

Home Forums General Issues Repeater field data not showing on site Reply To: Repeater field data not showing on site

  • Hello again. A guy at my hosting company tried around a bit and came to the conclusion that if you put the post ID in the has_sub_filed();/the_sub_field(); the data shows. Like it doesn’t know where it is assigned to?

    Like this (the “73”):

    <?php while(has_sub_field("segment_servicepriser", 73)): ?>										<h3><?php the_sub_field('segmentrubrik', 73); ?></h3>					<ul class="artikel bigbox list">
    <?php while(has_sub_field('artikel', 73)): ?>
    <li>
    <ul>
    																<li class="con60">															<?php if(get_sub_field('namn', 73)){															echo the_sub_field('namn', 73);												} else {													echo '-||-';															}?>															</li>																<li class="con20 right"><?php the_sub_field('pris'); ?>:-</li>															<li class="con20 info right"><?php the_sub_field('info'); ?></li>													</ul>

    And so on… The 73 is the current ID of one of the pages spitting this date out. So if I want the same data to spit out somwhere else I have to put that ID in too.

    I can’t recall that this was an issue before?

    What do you think?

    thanks again

    regards / Jeppe