Acf Field Checkbox change the Value to Label
-
Hello,
Thank you very much for the plugin. We have already looked around in the forum and found some “hooks”. Unfortunately, we have not yet been able to make the desired changes. On the page we have an ACF checkbox with Label and values displayed:
plan_a : Plan A
plan_b : Plan BWe currently get the Value (plan_a and plan_b) displayed in the filter. At this point we would like to have the labels displayed. For this we have used the following code:
add_filter('wpc_filter_post_meta_term_name', 'wpc_custom_term_name', 10, 2);
function wpc_custom_term_name($term_name, $e_name){
if( $e_name === 'plans' ){
$term_name = get_the_title( $term_name );
}
return $term_name;
}Unfortunately it does not work.
It would also be nice if we could adjust the URL structure. How can we change this?
- The topic ‘Acf Field Checkbox change the Value to Label’ is closed to new replies.