Hello @metalinedev
You can use next code example that allows you to change term names on the fly and place it for example in functions.php of your active theme. Don’t forget to modify it in accordance with your ACF values.
<?php
add_filter( 'wpc_filter_post_meta_term_name', 'wpc_custom_term_name', 10, 2 );
function wpc_custom_term_name( $term_name, $e_name ){
// $e_name is meta key in our case
// $term_name is term value stored in meta field in our case
if( $e_name === 'test_checkbox' && $term_name === "one" ){
$term_name = '中文單字的例子';
}
if( $e_name === 'test_checkbox' && $term_name === "two" ){
$term_name = '第二个例子';
}
return $term_name;
}
?>
FIY: honest review for the plugin would be best thanks for a plugin author 😉
-
This reply was modified 4 years, 6 months ago by
stepasyuk.
Thanks for your reply, I was hoping for some automatism, but it’s ok, I will try your code.
…and write a review soon 😉
@metalinedev yes, I know that supporting of all ACF fields features would be great and there are big chances, that I will add it in future. But for the moment there are more urgent thing, that I have to develop for Filter Everything plugin. And for the moment ACF labels can be added via coding only.
Hi!
I’m experiencing problems with a select dropdown, which is calling an ACF multiselect. When I select an option from the dropdown, only some elements are displayed, not all.
Hi @paulital
Can you please provide a link to the page, where you have problems?
In general I didn’t test my plugin with ACF multiselect dropdown and I’m not sure it will work properly.
-
This reply was modified 4 years, 6 months ago by
stepasyuk.
Send you the link: http://adndoc.com.ar/catalogo/, “seleccionar temas” it’s the problem.
Hello @paulital
Sorry for the late response. I checked your page, but it seems you tried to use another filter for your site.
In general for the moment multiselection filter terms is not supported by Filter Everything plugin. But it will be implemented in the future.
UPD: to be clear – I meant filtering by meta values created with ACF dropdown with multiselection enabled is not supported by Filter Everything. But you can select several filter terms simultaneously of course.