Output Select values
-
Hi!
Thank you so much for your plugin!I’m trying to output value of single-choice select.
I’m using this code for it:<?php $values = CFS()->get('format_name'); foreach ($values as $value => $label) { echo $value; } ?>
It gives me:
Warning: Invalid argument supplied for foreach() in (website address here)/loop-short2.php on line 21
Line 21 – is the one with start of foreach cycle.Can you please help me to figure out what I’m doing wrong?
Thank you!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Output Select values’ is closed to new replies.