Duplicate Group with Magic Fields 1
-
I’ve created a group which can be duplicated containing 2 fields which cannot be duplicated (WordPress 4.3.1 / Magic Fields 1.6.3.2)
I’m trying to output the values but I’m just getting a blank – no errors but no data either.
This is my code:
<?php $nearest_locations = get_group('nearest_locations'); if($nearest_locations) { foreach($nearest_locations as $nearest_location){ echo $nearest_location['nearest_locations_location_name'][1]."<br />"; echo $nearest_location['nearest_locations_location_distance'][1]."<br />"; }} ?>
I have read lots of threads on this and I don’t know what I’m doing wrong! Any help would be much appreciated ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Duplicate Group with Magic Fields 1’ is closed to new replies.