Set up the query
-
Hi
Is there an option within the plugin’s settings to set up a query like this:global $post; $current_category = get_the_category(); $same_category = new WP_Query(array( 'cat' => $current_category[0]->cat_ID, 'post__not_in' => array($post->ID), 'orderby' => 'rand', 'posts_per_page' => 15 ));Thanks
Dan
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Set up the query’ is closed to new replies.