Title: Featured request: synchronize thumbnails
Last modified: July 15, 2019

---

# Featured request: synchronize thumbnails

 *  Resolved [nielsvanrenselaar](https://wordpress.org/support/users/nielsvanrenselaar/)
 * (@nielsvanrenselaar)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/featured-request-synchronize-thumbnails/)
 * First off; hats of for this great enhancement to ACF. Beautiful plugin.
 * Since you can sync over JSON or PHP, it would be great to sync the thumbnails
   as well. Currently it seems that the thumbnails are saved by thumbnail ID. Working
   on a local/live site this is hard to work with. Since the ID’s I have locally(
   which get synced trough GIT by JSON) isn’t the same as live unless I do a database
   migration. That kind of defeats the purpose of JSON sync.
 * Possible solutions are the following;
 * – Allow to use or automaticly detect an image you save in the same folder as 
   the JSON you set with acf/settings/save_json. Maybe with the same names as your
   sections (section-name.png in an ‘asset’ directory
 * This will also resolve any issues someone might have running Multisite with the
   JSON sync which will also result in a mismatch in thumbnail ID’s.
    -  This topic was modified 6 years, 10 months ago by [nielsvanrenselaar](https://wordpress.org/support/users/nielsvanrenselaar/).
    -  This topic was modified 6 years, 10 months ago by [nielsvanrenselaar](https://wordpress.org/support/users/nielsvanrenselaar/).

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

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/featured-request-synchronize-thumbnails/#post-11735505)
 * Hello,
 * I added many hooks for Flexible Content thumbnails, to provide a solution for
   stage/live & multisite setups 🙂
 * Here are some examples:
 *     ```
       // add_filter('acfe/flexible/thumbnail/name=my_flexible', 'acf_flexible_layout_thumbnail', 10, 3);
       // add_filter('acfe/flexible/thumbnail/key=field_xxxxxx', 'acf_flexible_layout_thumbnail', 10, 3);
   
       // add_filter('acfe/flexible/layout/thumbnail/name=my_flexible&layout=my_layout', 'acf_flexible_layout_thumbnail', 10, 3);
       // add_filter('acfe/flexible/layout/thumbnail/key=field_xxxxxx&layout=my_layout', 'acf_flexible_layout_thumbnail', 10, 3);
   
       add_filter('acfe/flexible/layout/thumbnail/layout=my_layout', 'acf_flexible_layout_thumbnail', 10, 3);
       function acf_flexible_layout_thumbnail($thumbnail, $field, $layout){
   
           // Must return an URL or Attachment ID
           return 'https://www.example.com/my-image.jpg';
   
       }
       ```
   
 * You can target all thumbnails from a flexible content, or specific layout within
   a specific flexible etc…
 * Note: You can return an attachement ID or a relative/absolute URL.
 * Hope it helps!
 * Regards.
 *  Thread Starter [nielsvanrenselaar](https://wordpress.org/support/users/nielsvanrenselaar/)
 * (@nielsvanrenselaar)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/featured-request-synchronize-thumbnails/#post-11735514)
 * Missed this completely, makes it even more awesome!
 * Great
 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/featured-request-synchronize-thumbnails/#post-11735552)
 * Hehe!
 * There are many more hooks for the Flexible Content in order to control the preview
   mode, the render template/style/script path etc… You’ll probably need it.
 * Please check the latest questions in the plugin’s FAQ: [https://wordpress.org/plugins/acf-extended/#faq](https://wordpress.org/plugins/acf-extended/#faq)
 * Have a nice day!
 * Regards.

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

The topic ‘Featured request: synchronize thumbnails’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/featured-request-synchronize-thumbnails/#post-11735552)
 * Status: resolved