View Single Post
Old August 11th, 2013, 12:49 PM
raj2006 raj2006 is offline
Join Date: Oct 2008
Location: New Delhi, India
Posts: 147

Originally Posted by Eric View Post

Sure, you would just need to pass the RandomFile() function the folder name based on the category ID or category slug.

print RandomFile($category->id.'/','.*');

Hi Eric,

One small doubt. If I want to use the category slug, then what should come in place of "id" in the above php code?

Also, how to find out the Category IDs for the store categories?
Making Sizeable Income From Passive, Hands-Off Affiliate Marketing Is A Reality!
Learn These Guaranteed Techniques from Confessions of a Lazy Super Affiliate eBook.

Last edited by raj2006 : August 11th, 2013 at 12:52 PM.