- This topic has 2 replies, 2 voices, and was last updated 4 months, 3 weeks ago by .
How can I generate srcset sizes for Image Advanced field in Twig?
In Toolset, I know there is a simple trick to achieve srcset - adding:
class="size-full wp-image-1234"to the img tag somehow makes WordPress generate srcset automatically for image fields, if the wp-image- class has the correct image ID.
However, this trick doesn't seem to work in Metabox Views.
Is there a simple way to output automatically all srcset sizes in Views/Twig?
- You must be logged in to reply to this topic.