Support Forum
My wife teaches dancing. I've helped her keep track of the dances using Meta Box. Quite a few of the dances can be danced to more than one song.
I have a text field with the id of music which is cloneable. As per your documentation I've added within a code block the code:
<?php
$values = rwmb_meta( 'music' ) ;
foreach ( $values as $value ) {
echo $value;
}
?>
I'm getting an error of:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/oxygen/component-
framework/components/layouts/code-block.php(33) : eval()'d code on line 3
On the frontend everything works as I'd like it to but the error plays havoc with my OCD.
Am I doing something wrong, if not is there a work around? Any help with this would be greatly appreciated.