Viewing 3 replies - 1 through 3 (of 3 total)
  • yes, it doesn’t work in my case either…

    The path filter is working correctly for me. Here is how to implement:

    Add the following to your functions.php file:

    add_filter( 'acf-flexible-content-preview.images_path', 'get_acf_preview_path' );
    
    function get_acf_preview_path() {
        return 'img/acf-previews';
    }

    The above would set the plugin to look for your preview images in /wp-content/themes/your-theme-folder/img/acf-previews/.

    The images need to be in JPG format and underscores need to be changed to dashes. For example, if your layout name is “my_great_layout”, the preview image filename would be “my-great-layout.jpg”.

    Plugin Author Jameel Moses

    (@jameelmoses)

    Thanks for responding for me @gpnagy. Marking this resolved, but let me know if you still are having issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter for path is not working’ is closed to new replies.