Thread Starter
wieloh
(@wieloh)
Oh, alternatively, I found this:
$args = array( ‘numberposts’ => 15, ‘orderby’ => ‘rand’ );
$rand_posts = get_posts( $args );
$postid = array();
foreach( $rand_posts as $post ) :
array_push($postid,get_the_ID());
endforeach;
Where I can conveniently pull out 15 random post ID and get them into an array for later use when I want to pull out the posts content; but how would I go in constraining those 15 ID into only for posts over the last 6 months?