| 1 2 3 4 5 6 7 8 9 10 11 12 13 | <?php $kanren = get_field('event-store'); ?> <?php if($kanren): ?> <?php foreach((array)$kanren as $value):?> 	<p> 		<?php 			if ($terms = get_the_terms($value->ID, 'store-cat')) { 			foreach ( $terms as $term ): 			if($term->parent) echo esc_html($term->name); 			endforeach; 		} ?> 	</p>  <?php endforeach; ?> <?php endif; ?> | 
3行目と6行目の「$value」を合わせる
 
			
 
				 
				 
				 
				 
				 
				 
				 
				 
				 
				