Tag Info

New answers tagged

1

In your functions.php you can create a function that will hook into the pre_get_posts hook. Something like (just an example): function alter_query($query){ $query->set('post_parent', 0); } add_action( 'pre_get_posts', 'alter_query' ); There you can alter the main query. That way while(have_posts()) : the_post(); will still just normally work. (You ...



Top 50 recent answers are included