This is the basic loop
I want to show 20 posts on the search results page. I know we can chang
I find this solution and it works for me.
global $wp_query; $args = array_merge( $wp_query->query_vars, ['posts_per_page' => 20 ] ); query_posts( $args ); if(have_posts()){ while(have_posts()) { the_post(); //Your code here ... } }