This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • in reply to: Filter not working #37564
    omkb78omkb78
    Participant

    Hey,

    I updated it. Can you try again?

    in reply to: AFC and Ajax Search Pro – Filter & Search Problems #36495
    omkb78omkb78
    Participant

    We have fixed the image (path was not set right in AJAX Pro) and setup the configuration as you described. Problem still is there.

    in reply to: AFC and Ajax Search Pro – Filter & Search Problems #36493
    omkb78omkb78
    Participant

    Hello, we use this Script:

    function acf_set_featured_image( $value, $post_id, $field ){

    if($value != ”){
    //Add the value which is the image ID to the _thumbnail_id meta data for the current post
    delete_post_thumbnail( $post_id);
    add_post_meta($post_id, ‘_thumbnail_id’, $value);
    }

    return $value;
    }

    // acf/update_value/name={$field_name} – filter for a specific field based on it’s name
    add_filter(‘acf/update_value/name=logo’, ‘acf_set_featured_image’, 10, 3);
    add_filter(‘acf/update_value/name=speaker_bild’, ‘acf_set_featured_image’, 10, 3);
    add_filter(‘acf/update_value/name=image’, ‘acf_set_featured_image’, 10, 3);
    add_filter(‘acf/update_value/name=speaker_bild_in_video’, ‘acf_set_featured_image’, 10, 3);

Viewing 3 posts - 16 through 18 (of 18 total)