Meta Box, Term Name inside cloneable group #190
Unanswered
lohint
asked this question in
Third-Party Plugin Questions & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
a Meta Box term output problem. I'll try to reformulate and make the explanation clearer a bit.
This is the problem in the frontend. Text with the red background is the term taxonomy output. Left column dynamically pulled via Meta Box Group field and selecting a field. Right column shows the result of used Code Block.
this is the back end of the post
and the code used for the code block
`<?php
$group_values = rwmb_meta( 'cf-cloneable_group' );
if ( ! empty( $group_values ) ) {
foreach ( $group_values as $group_value ) {
$value = isset( $group_value['cf-sub-taxonomy'] ) ? $group_value['cf-sub-taxonomy'] : '';
foreach ( $value as $val ) {
$term_name = get_term( $val )->name;
echo $term_name;
}
}
}
?>`
Please react at least the way "I totally don't understand what are you up to"
Thanks
Beta Was this translation helpful? Give feedback.
All reactions