Hi.
I'm using oxygen and metabox. I have 2 CPT. Product and Categories. Categories has some custom fields where one of it is "color picker".
I need to create a repeater for this color picker. and codeblock with code:
<?php
$catColor = rwmb_meta('cat_color');
echo $catColor;
?>
but I need to somehow dynamically adjust it for class because if I use:
<?php
$catColor = rwmb_meta('cat_color');
echo $catColor;
?>
<style>
.cat__bg-color {
background-color: <?php echo $catColor ?>;
}
</style>
its populates all with the first color it'll find on a page. Is there a workaround for that?
(echo works - it is showing different #hex for each repeater element)