I have a gallery with the following markup:
<ul>
<li>
<figure>
<a href="myimg1.jpg" rel="prettyPhoto"><img src="thumb1.jpg" /></a>
<figcaption>
some stuff here
</figcaption>
</figure>
</li>
<li>
<figure>
<a href="myimg2.jpg" rel="prettyPhoto"><img src="thumb2.jpg" /></a>
<figcaption>
some stuff here
</figcaption>
</figure>
</li>
</ul>
As far as I can tell, for the automated next/previous navigation to work, the image links need to be beside each other in the DOM. Is there any easy way to get it to work with the above structure? I looked over the options but couldn't see anything obvious.