Support

Account

Forum Replies Created

  • Hi

    Incase anyone is viewing this with a similar issue. After contacting their support, we found doing this sorted the issue;

    https://www.advancedcustomfields.com/resources/acf-field_group-disable_field_settings_tabs/

  • After testing on my dev build this weekend 6.1.5 is quick on saving and 6.1.6 onwards is really slow (5 mins on saving). I’ll contact their support and see what they say.

    There’s been a few security fixes since 6.1.5 so I won’t use it on the live site, but I could leave it on my dev build which should quicken things a bit.

  • Ignore the above. It must be something thats happened (the slow down) in a recent update as I’ve downgraded to a v5 (as a test) and its back to saving instantly. I’ll now keeping updating until it slows again to find the version thats the issue.

  • Hi

    Sorry for dragging up an old thread, but I’m having the issue mentioned above with a Flexible Content group with about 30 fields.)

    I’m interested in how @zeshanshani and @hube2 say creating a new group and moving the fields can help. I’m confused though as I don’t have the ‘move’ option on the fields.

    I’m using the pro version (6.2.0)

  • I’ve sorted this. For some reason the reply from @bentangible isn’t showing. This is what they wrote;

    You might want to check out Loops & Logic for this, it makes this kind of thing relatively easy. It uses a syntax like HTML to achieve this kind of functionality instead of needing to work with PHP. So to achieve what you’re trying to do, you’d create a template that included some markup like I’ve written below, and then you’d display it on your page either using a shortcode or the block in the page builder you’re using:

    <If acf_true_false=deposit_required>
    <div class="container" id="deposit_box">
    <!–your div content goes here and all this will be displayed if the deposit_required ACF true/false field is set to "true"–>
    </div>
    </If>

    The nice thing about this approach is you’re not bloating the dom with display-none content, you’re actually not even rendering that whole div if the ACF true/false field is set to false. In my example above I assumed your field was called deposit_required but I’m not well-versed in PHP so I might have misinterpreted exactly what you’re trying to do. I just find it’s easier to work with L&L for this kind of thing where you just need to display some HTML data or conditionally show/hide stuff. Much easier to understand than PHP for me personally since it just uses regular HTML syntax.

    I then ended with this;

    <?php if ( get_field( 'deposit_required' ) ): ?>
    
    <div <?php if($date_passed == "date-passed") echo 'class="display-none"'; ?> class="container " id="deposit_box">
       <div class="row">
           <div class="col-12">
    	   <h3><?php the_field('deposit_box'); ?></h3>
    	   <p>Phone <a href="tel:XXXXXXXXXXX">XXXXXXXXXX</a> or <a href="mailto:xxxxxxxxxxxxxxxxxx">email</a> to pay your deposit and book your place on the event.</p>
    	   <p><strong>Non-refundable deposit option.</strong></p>
    	   <p>XXXXXXX offer a non-refundable payment option on selected events of £45.00 and over. A 25% deposit is required at the time of booking with the remaining balance due no later than 3 weeks prior to the event.</p>
    	   <p>Failure to pay on time will result in places cancelled without any refund offered and your deposit payment lost.</p>
           </div>
       </div>
    </div>
    
    <?php endif;  ?>
  • Adding <?php wp_reset_postdata(); ?> after <?php endwhile; ?> in the blog sidebar template fixed it.

  • Its this bit in the blog sidebar that seems to causing the issue.

    while ($latestposts->have_posts()) : $latestposts->the_post(); ?>
    <?php the_post_thumbnail( 'small-rectangle', ''); ?>	        	
    <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
    <p><?php the_excerpt(); ?></p>
    <hr>
    <?php endwhile; ?>

    If I remove this bit it works. Not sure how to edit this bit though (its a site I inherited, so I didn’t code this bit…

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