PDA

View Full Version : How I show recent images only from one category?


iphoto
December 5th, 2004, 10:16 AM
Hi,

I would like to show recent images only from one category..any idea how this can be achived?

Chuck S
December 5th, 2004, 10:44 AM
Under the display_gallery function you would need to adjust the query

iphoto
December 14th, 2004, 04:07 PM
Under the display_gallery function you would need to adjust the query

Can you be please more specific :confused:

Michael P
December 14th, 2004, 05:27 PM
Inside the display_gallery function in pp-inc.php are the three queries performed which grab images to display. In the WHERE clause for these, you would add your own custom query like:

WHERE cat IN (505,510,512)

which would modify the query to grab images from only those categories.