1
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: July 24, 2007, 05:31:11 PM »
well i need help related to random images inside categories.
how we can function to show all images as random , inside a main category means it should include the sub categories too. automaticaly
for example i have given 5 as category id so it should automatically consider and add sub categories for this main category and show random images from them on category page as well.
and one more thing that what should we do so that in
$cat_in = array( some variable )
the values of specific category be stored in a variable "some variable" like 5,6,7,9,78,55 etc 5 is the main and test 6,7,9,78,55 are its sub categories.
kindly help plz
how we can function to show all images as random , inside a main category means it should include the sub categories too. automaticaly
Code: [Select]
$cat_in = array(5); //list of category ids // *** TO FILTER RANDOM IMAGES ***
for example i have given 5 as category id so it should automatically consider and add sub categories for this main category and show random images from them on category page as well.
and one more thing that what should we do so that in
$cat_in = array( some variable )
the values of specific category be stored in a variable "some variable" like 5,6,7,9,78,55 etc 5 is the main and test 6,7,9,78,55 are its sub categories.
kindly help plz