View Single Post
Old 07-03-2015, 12:39 PM  
lollipopx
Confirmed User
 
lollipopx's Avatar
 
Industry Role:
Join Date: Apr 2014
Posts: 171
Quote:
Originally Posted by Venum View Post
For excluding categories, example:
'category__not_in' => array(catID, catID)

For including categories, example:
'category__in' => array(catID, catID)

For tags: tag__in & tag__not_in
Im doing something wrong here, I keep getting parse errors
where exactly does it go?
<?php $args = array( 'numberposts' => 42, 'orderby' => 'category_name=blowjobs');'category__not_in' => array(catID, catID); didnt work got parse error

<?php $args = array( 'numberposts' => 42, 'orderby' => 'category__not_in' => array(catID, catID); didnt work got parse error


what I have on now that works at displaying 1 cat but does not randomize it

<?php $args = array( 'numberposts' => 42, 'orderby' => 'category_name=blowjobs');

for that I just replaced the 'orderby' => 'rand'); with the 'orderby' => 'category_name=blowjobs');

would like to add a few more categories and have it randomize them
__________________
Lollipopx.com
Twitter @lollipopx_1, Tumblr lollipop-x, ICQ 669068563, Skype lollipop_130 Tell me your from gfy or i might ignore you.
lollipopx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook