Support » Fixing WordPress » wp query tags does not return anything

  • Resolved cogmios

    (@cogmios)


    this:

    $wp_query = new WP_Query();
    	$wp_query->set('tag', 'issue');
    	$wp_query->set('posts_per_page', 30);
    	$wp_query->set('offset', $paged*30);
    	$posts = $wp_query->get_posts();
    	if ($posts) : foreach ($posts as $post) : the_post();

    does not return anything.. hmmm ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp query tags does not return anything’ is closed to new replies.