i found a solution:
if (is_array(get_field('winkel_uitgelicht', 'winkels_'.$term->term_id))) {
$value = implode(', ', get_field('winkel_uitgelicht', 'winkels_'.$term->term_id));
i know its a if statement but i don’t know where to put it. I’m not a php developer.
i tried:
if ($value){
$value = implode(', ', get_field('winkel_uitgelicht', 'winkels_'.$term->term_id));
}
but that don’t work
i can’t figured out what to add to the code if i want to check if the value exists. can you help me?
only now i get the error Warning: implode(): Invalid arguments passed in (path) on line 6 .
do i have to put something else in the code?
Thnx for the advice
if i change
$value = get_field(‘shop_options’, ‘shops_’.$term->term_id);
to
$value = implode(‘, ‘, get_field(‘shop_options’, ‘shops_’.$term->term_id));
it works
Thnx, first of all i like to thank you for the ACF plugin. the second thing is i’m a frontend developer and not really good in php. Can you give me a example?