• Resolved metalinedev

    (@metalinedev)


    Hello and thank you for your plugin,

    I created a “select” custom field with “Advanced Custom Field”. In this field I set the options with “value : label”.

    Then I created a filter based on the ACF field. I expected to see the labels of my select field, instead I see the values.

    How can I “translate” values with labels?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    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 3 years, 2 months ago by stepasyuk.
    Thread Starter metalinedev

    (@metalinedev)

    Thanks for your reply, I was hoping for some automatism, but it’s ok, I will try your code.

    …and write a review soon ??

    Plugin Author stepasyuk

    (@stepasyuk)

    @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.

    Plugin Author stepasyuk

    (@stepasyuk)

    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 3 years, 2 months ago by stepasyuk.

    Send you the link: https://adndoc.com.ar/catalogo/, “seleccionar temas” it’s the problem.

    Plugin Author stepasyuk

    (@stepasyuk)

    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.

    Plugin Author stepasyuk

    (@stepasyuk)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘ACF select field support’ is closed to new replies.