I have a select field called rating_total. It’s return format is set to label. For simplicity, its values are being displayed in the front end through the shortcode:
However, in one place I want to return the value (as opposed to the label) of that field. I want to use PHP for this and I tried all snippets I found in the documentation or forums – but none worked. They either kept showing the label of the selected option or even returned the field name “Rating total”.
Can I even display the value of this field with PHP despite the return format being set to label (not array or value)?