WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Modify loop_start according to template

[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 <ul class='dlm-downloads-image'>

    Is there a way to do this using a filter or in any other way?

    http://wordpress.org/plugins/download-monitor/

Viewing 1 replies (of 1 total)
  • Ok, this is fixed now. I have pasted the shortcode in the WYSIWYG editor which encodes the tags insite.

    Thanks to Mike for pointing me to this workaround!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Modify loop_start according to template’ is closed to new replies.