Home › Forums › General Issues › wysiwyg and RICG Responsive Images Not working › Reply To: wysiwyg and RICG Responsive Images Not working
Did some testing, I thought the srcset might be added when the image was inserted into the editor, but it appears that it’s not added until the content is displayed on the front end.
I’m assuming that the pluging modifies the content when the_content
hook runs. ACF does not cause this hook to run and instead uses acf_the_content
Try adding the following into your functions php file, this is copied from the responsive images plugin.
add_filter('acf_the_content', 'tevkori_filter_content_images', 5, 1 );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.