Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [showyamap]
- [placemark coordinates="53.709992,32.654287" ]
- [placemark coordinates="51.886690,38.436733" ]
- [placemark coordinates="51.886690,38.436733" ]
- [/showyamap]
- <?php if( have_rows('mo_ml') ): ?>
- <?php $begin_shortcode = ('[showyamap]'); ?>
- <?php $end_shortcode = ('[/showyamap]'); ?>
- <?php echo $begin_shortcode ?>
- <?php while( have_rows('mo_ml') ): the_row(); ?>
- <?php if( have_rows('mo_places') ): ?>
- <?php while( have_rows('mo_places') ): the_row(); ?>
- <?php $mo_lattitude = get_sub_field( 'massimo_lattitude');
- $mo_longitude = get_sub_field( 'mo_longitude');
- echo ('[placemark coordinates="'. $mo_lattitude .',' . $mo_longitude .'" ]');
- ?>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php echo $end_shortcode ?>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment