how to have the gallery shortcode output one single UL list instead of several DL?

You can use the the following attributes for the gallery shortcode:


The problem with this is that the gallery shortcode wraps the image and the caption in different elements(thats why the default solution is using dl-dt-dd), so this will generate one li element for the image, and one for the caption. You can still style it using CSS though, because both of the element has unique classnames.

Leave a Comment