StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 11-20-2008, 09:19 PM
Jason Sandquist Jason Sandquist is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2008
Posts: 39
Default Re: Using Carousel - Can I pull images from Various Categories?

Quote:
Originally Posted by Jeff Milone
Yes, you can do that. Open home.php, and find this code:

Code:
<div id="slide-box">
                    <div>  
                    <?php if ($aOptions['featured-cat'] != '') { query_posts('showposts=6&cat=' . $aOptions['featured-cat']); } ?>
Add "orderby=rand" so it looks like this:

Code:
<div id="slide-box">
                    <div>  
                    <?php if ($aOptions['featured-cat'] != '') { query_posts('showposts=6&orderby=rand&cat=' . $aOptions['featured-cat']); } ?>
If I had the Post ID where would I put that so I can pull the ones in a certain order?
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making hpbottom pull multiple categories? ed1283 General Discussion 1 06-29-2009 12:51 AM
Can I pull from multiple categories? sthaw General Discussion 3 03-24-2009 04:30 PM
images in carousel and posts ronfrank General Discussion 2 02-18-2009 09:19 AM
Adding Images to the Carousel scottsaekim General Discussion 6 12-22-2008 12:48 PM


All times are GMT -5. The time now is 09:03 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.