I have a query for calling images from a post category. I am trying to control it to only query 6 images. I have tried using php count, but its not working as expected. Any ideas of what I could do differently to achieve this.
This was also the only way "I" was able to also include a "rel" tag for lightbox. Please keep that in mind if you know of a better way to do this.
I tried using the code pre tags and it wasnt showing full code so here is a pastebin link http://pastebin.com/kjkJQPR7