Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello again,

    @stepasyuk , please, could you give us an answer please? We bought the plugin months ago and it has caused different troubles until now. We can’t find a way to solve this one this time.

    We would really appreciate your help to solve this issue in this plugin.

    Regards,

    I have the same problem, I mean that the filters display the value instead of the label. For example, for the ACF field with key shop_area, these are the values and the labels:

    Spain_south : South of Spain
    Spain_north : North of Spain
    France_south : South of France
    France_north : South of France

    However, the filters of the plugin show:

    Spain_south (14)
    Spain_north (26)
    France_south (25)
    France_north (32)

    I have tried to add your code (from your last comment on March, 3rd) in functions.php but it has not worked.

    add_filter( 'wpc_filter_post_meta_term_name', 'wpc_acf_labels_instead_of_values', 20, 2 );
    
    function wpc_acf_labels_instead_of_values( $term_name, $meta_key )
    
    {
    
    // your ACF-field meta keys
    
    $keys_with_labels = ['shop_area','shop_ranking'];
    
    if ( in_array( $meta_key, $keys_with_labels ) ) {
    
    if( function_exists('get_field_object') ){
    
    $field = get_field_object( $meta_key );
    
    $new_choises = [];
    
    if( isset( $field['choices'] ) && ! empty( $field['choices'] ) ){
    
    foreach ( $field['choices'] as $key => $value ){
    
    $new_key = mb_strtolower($key);
    
    $new_choises[$new_key] = $value;
    
    }
    
    $term_name_test = mb_strtolower( $term_name );
    
    if( isset( $new_choises[$term_name_test] ) ){
    
    $term_name = $new_choises[$term_name_test];
    
    }
    
    }
    
    }
    
    }
    
    return $term_name;
    
    }

    ¿How can we make it work?


    • This reply was modified 2 years, 11 months ago by MPasc.

    Hello,

    I am having the same problem. These are the tests I have done and my conclusions:

    • Deactivating all plugins but Elementor did not have any effect. It is anot a plugin incompatibility matter
    • Deactivating hestia and activating any other template: the font-size was properly applied in the text widget. So, it is a problem with Hestia.
    • Removing the <p> tag makes that the text size is properly applied. It looks like if there was a configuration for <p> tags in the css of the theme that is causing the problem.

    My website is already online at here. You can see that in the home page there is a blue box with text size set to 3rem, but it is not applied.

    The workaround you suggested works but it is a quite consuming-time solution… I think that if that is the only solution I will have to change to another theme, but it means redoing a lot of work 🙁

    I hope this helps to find out the problem.

    Thank you very much for your help!

    Thread Starter MPasc

    (@mpasc)

    By the way, I have found very elegant the solution to display the word “tags:”. Most of the plugins set by php code this kind of works, but you used a css definition together with “content”. It allows us to remove this word by css in a very easy and clean way.

    Thank you and congrats again!

    Thread Starter MPasc

    (@mpasc)

    Hi,

    Thank you very much indeed!!!!

    You have saved me a tone of time! I had tried several posts until I found yours, which was the best. Only this functionality was missed. Now it works like a charm with all the functionality I needed.

    Thank you again for your work and time!!

    Thread Starter MPasc

    (@mpasc)

    I have uploaded to WP 3.2.1 in order to try if it solved the problem, however it does not. It seems like if the function nggAutocomplete did not exist, but I do not why or where is the conflict. It is becoming annoying and frustrating…

    Thread Starter MPasc

    (@mpasc)

    I have disabled all the plugins and even the add-ons, but it did not work yet. I have tried in Chrome and Safari too but it does not work either. I have tried again in Firefox, keeping all the plugins and add-ons as disabled except Firebug and I have seen that I get the following error:

    jQuery(“#previewpic”).nggAutocomplete is not a function
    http://localhost/my_web/wp-admin/admin.php?page=nggallery-manage-album
    Line 170

    In addition to this, I had selected a picture for the gallery and it is not displayed either in the page where I get the error.

    I have look for the error in Google but the solutions I have found and tried have not worked for me. Any idea, please?? 😉

    Thank you in advanced

    Thread Starter MPasc

    (@mpasc)

    Hi Toetde,

    great, I can see that I am not the only one, and I guess that it must be failing for other people too.

    Nobody has an answer for us?? 😉

Viewing 8 replies - 1 through 8 (of 8 total)