Add routes between multiple ACF google maps markers [closed]

I’ve managed to work around this by using Gmaps.js. function initMap($el) { var bounds = []; var waypts = []; var $markers = $($el).find(‘.marker’); var map = new GMaps({ div: $el, scrollwheel: false, zoomControl : true, zoomControlOpt: { style: ‘LARGE’, position: ‘TOP_RIGHT’ }, panControlOpt: { position: ‘TOP_RIGHT’ } }); $markers.each(function() { // DEFINE CURRENT/NEXT MARKER … Read more

Displaying page list and a custom field

From what I see there, I’d expect that your problem is the meta value in story_detail_story_image is storing an image id. Try replacing the following <?php if ( get_post_meta( get_the_ID(), ‘story_detail_story_image’, true ) ) : ?> <a href=”https://wordpress.stackexchange.com/questions/177610/<?php the_permalink() ?>” rel=”bookmark”> <img class=”thumb” src=”<?php echo get_post_meta( get_the_ID(), ‘story_detail_story_image’, true ); ?>” alt=”<?php the_title(); ?>” /> … Read more

Advanced Custom Fields Show After Password [closed]

Reading the docs (never used flexible fields, only repeater fields, but look the same): <?php // check if the flexible content field has rows of data if( have_rows(‘flexible_content_field_name’) ): // loop through the rows of data while ( have_rows(‘flexible_content_field_name’) ) : the_row(); if( get_row_layout() == ‘paragraph’ ): the_sub_field(‘text’); elseif( get_row_layout() == ‘download’ ): $file = … Read more

ACF iterating past the while-loop, defining a max number to loop

If I compare the counter to five instead of the input (****), then it evaluates perfectly. Thanks to Milo for the help. <?php if( have_rows(‘program_skills’) ) : while( have_rows(‘program_skills’) ) : the_row(); ?> <div class=”skills-wrapper”> <div class=”col-xs-6″> <p><?php the_sub_field(‘heading’); ?></p> </div> <div class=”col-xs-6″> <div class=”skills-graph”> <ul> ****<?php for($i=1; $i<=5; $i+=1) if( $i <= get_sub_field(‘rating’) ) … Read more