02/18/2015 at 5:24 pm
#319940
Participant
On this function:
foreach ( $terms as $term ) {
if ( ! in_array( $term->term_id, $terms_r ) ) continue;
if ($i >= 1) {
$position .= ' | ';
}
$i = $i + 1;
$position .= $term->name;
}
I get now this PHP error:
Warning: Invalid argument supplied for foreach()