[Resolved] Modify loop_start according to template
I have a page that contains multiple download shortcodes. Some are for documents and others are for images. To be able to style these differently I have used
loop_start="<ul class='dlm-downloads-image'>"]in the shortcode to wrap images in a different class.
Unfortunately the WYSIWYG editor breaks the code above. Therefore I am trying to modify the loop_start based on the template that is being used.
So what I am trying to achieve is:
– if the template that is defined in the shortcode is ‘image’ -> modify the loop_start to
Is there a way to do this using a filter or in any other way?
- The topic ‘[Resolved] Modify loop_start according to template’ is closed to new replies.