- This topic has 1 reply, 2 voices, and was last updated 1 week, 4 days ago by .
-
Topic
-
I’m trying to actually understand why using
echo
produces different results when displaying values. I havenum_of_items
stored with a value of 6.rwmb_THE_value:
* THE:<dd><?php rwmb_the_value('num_of_items'); ?></dd>
displays 6
* ECHO THE:<dd><?php echo rwmb_the_value('num_of_items'); ?></dd>
displays 66rwmb_GET_value:
* GET:<dd><?php rwmb_get_value('num_of_items'); ?></dd>
displays nothing
* ECHO GET:<dd><?php echo rwmb_the_value('num_of_items'); ?></dd>
displays 6I’ve been studying the related docs: https://docs.metabox.io/rwmb-get-value/ & https://docs.metabox.io/rwmb-the-value/ – But still a little confused on how/why
echo
affects them.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.