rwmb_meta – how to get labels of options of a select field?
-
Hi,
here is the definition of my select field, which works fine:
array( 'name' => 'price', 'id' => "{$prefix}price", 'type' => 'select', 'options' => array( '1' => 'One', '2' => 'Two', '3' => 'Three', ), 'multiple' => false, 'std' => '', 'clone' => false, 'class' => 'ufmb-price', ),
But how can I now retrieve the label “One” from that? If I use
$price = rwmb_meta( 'ufmb_price', 'type=select' );
I only get “1”, the array $price does not contain the labels. What am I doing wrong?Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘rwmb_meta – how to get labels of options of a select field?’ is closed to new replies.