Hi,
I´m trying to output taxonomy term name instead of term ID which appears on output when pulling nested taxonomy data in Oxygen (unluckily there is no option to choose to output a term name instead of an ID), so I thing some custom PHP might help here.
This is the code I´m using
<?php
$group_values = rwmb_meta( 'cfa-group_zavodni_den' );
if ( ! empty( $group_values ) ) {
foreach ( $group_values as $group_value ) {
$value = isset( $group_value['cfa-trat'] ) ? $group_value['cfa-trat'] : '';
echo $value; // Display sub-field value
}
}
?>
This code outputs the word "array" on the frontend.
I´m obviously no PHP wizard here. I need a little push so I can mine $value variable and pull term name out of it.
Thanks for help