Support

Account

Forum Replies Created

  • and the problem I had with the inbuilt feature of save and load was it still required to change the default wp taxonomy, it was ignoring/over riding the ACF field. The idea is so they only have to change it on the ACF field and it would automatically update the default one, but with the load and save terms it was doing it the other way arround.

  • Thanks, but still wouldn’t work. At first I got a ArgumentCountError and then i tried a fresh one and nothing

  • Fair. I forgot repeater is on the pro only. I don’t know if the standard one has a viable option.

  • I didn’t think it was possible with just a function. I’ve just been editing/creating the template files for it.

    So in your child theme folder create a sub folder called woocommerce then another sub folder called single-product then inside that another sub folder called tabs.

    You can duplicate the files over from the woocommerce plugin, it follows the same file suture. And rename one of the duplicates to your-tab-title.php and there you can pull the data in from ACF.

    Also dupliate the tab.php over and add in the new title for that tab too in there

  • is this just so you can search through and read it easier? For long lists like that I go with a repeater, that way it’s easier for me to keep track of whats already been selected and I can rearrange easier.

  • I’m wondering if it’ll work better as a repeater

  • it looks like it should already be doing that. Because if you don’t have any sub fields field in then the have_rows(‘burial_census_information’) would be empty. Don’t create the row if you don’t have content to fill in?

  • See if this helps

    <?php
    if(have_rows('school_life_holder')) {     
                                
         // add a counter
         $count = 0;
         $group = 0;
    
         while ( have_rows('school_life_holder')) {
            the_row();
    
            if ($count % 3 == 0) {
                 $group++; ?>
    
                <div id="<?php echo $group; ?>" class="row group-<?php echo $group; ?>" data-equalizer> <!--Begin Row:-->
    
                <?php 
             } // count
    
            if( get_row_layout() == 'school-life-link' ) { ?>
    
            <div class="large-4 medium-4 columns panel" data-aos="fade-up" data-aos-delay="150">                        
            
            <div><a href="<?php echo the_sub_field('link'); ?>" target="_blank"><img src="<?php echo the_sub_field("staff_pic") ?>" alt="<?php the_title(); ?>"></a></div>
            
            <div class="profile-box"><a href="<?php echo the_sub_field('link'); ?>" target="_blank"><strong><?php echo the_sub_field('staff_title'); ?></strong></a></div>
            
            </div>
    
            <?php
            
            } // end get link
    
            elseif( get_row_layout() == 'school-life-video' ) { ?>
    
    <div class="video-parent">
    
        <div><a href="<?php echo the_sub_field('link'); ?>" target="_blank"><img src="<?php echo the_sub_field("staff_pic") ?>" alt="<?php the_title(); ?>"></a></div>
                                
        <div class="video-inner">
        <a href="<?php echo the_sub_field('link'); ?>" target="_blank"><img class="bounce_button" src="#"></a>
        </div>
    </div>
    
    <div class="profile-box"><a href="<?php echo the_sub_field('link'); ?>" target="_blank"><strong><?php echo the_sub_field('staff_title'); ?></strong><br><?php echo the_sub_field('staff_job'); ?></a></div>
    
            <?php
    
            } //end get video
    
    if ($count % 3 == 0) { 
    
        echo '</div>'; //----I've moved this outside the previous if statement. Is it suppose to close off the starting if div?.
            }
    
                } //end while
    
    } //if have rows
    
    ?>
  • I’m also confused about a closing div div tag down the bottom in the if count % 3 == 2. does this need to be outside the the link if?

  • I think you might need to close off a endif; down the bottom somewhere.
    personally I go with brackets for long if else statements that way I can see whats opened and closed easier

  • I think this might be a conflict with id numbers. If you’re importing fields from another project and that id is already taken by something else or something along those lines

  • I’ve just come in to report that I have the exact same issue.
    I just exported fields from a local environment to the live site, then exported the live database to the local. And this happened. I doubled checked to see if all fields were exported correctly and they were. It’s happened I noticed on repeater fields.

Viewing 12 posts - 1 through 12 (of 12 total)