MG 2.1 display one image per category

Twincam

Member
Hi

In Media Gallery, as you drop down through categories and sub-categories it starts to display the most recent images. I'd like it to display only one image per sub-category. Can anyone point me the code that generates the list of images to be displayed?

Ta
 
I've got around this. The idea was only to display a selected image from each category, but we don't allow users to rate images, so I've just changed the image display order so that the highest rated images come first. Then admins can rate one image per category and they'll come first. Ideally I'd like to exclude zero-rated images completely unless you are actually in the category but they all come afterwards so that'll do for now.
 
Back
Top Bottom