View Single Post
Old 07-04-2015, 12:50 PM  
lollipopx
Confirmed User
 
lollipopx's Avatar
 
Industry Role:
Join Date: Apr 2014
Posts: 171
Quote:
Originally Posted by Venum View Post
You have to replace catID with your category ID, example if your category ID for blowjobs is 43:

<?php $args = array( 'numberposts' => 42, 'orderby' => 'rand', 'category__in' => array(43) );

If you like to exclude category, then replace category__in to category__not_in.

If you like to include or exclude multiple categories the you can but them like this: array(43, 56, 78)
Awesome, works good. thanks

As im sure your aware this is in side word press themes page php editor.
so although its on each "Page" its not actualy "in" page if you follow me.
How could I use this "in" page, say like so it can randomize to specific posts/cats like a featured post ?
__________________
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