I am displaying shortcode posts in WordPress posts / pages and want to show an endless list of posts, but it only shows 10 posts.
Here is my code; please tell me what is wrong with my request.
$args = array( 'post_type' => 'post', 'cat' => '2', 'meta_key' => 'issue_of_article', 'meta_value' => $issue, 'posts_per_page' => -1, 'orderby' => 'artcle_category', 'order' => 'ASC'); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); $loop->the_post(); <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> endwhile; }
wordpress
mian ji
source share