List all posts in a particular page [closed]
first, create a custom page template and paste the code <?php // the query $wpb_all_query = new WP_Query(array(‘post_type’=>’post’, ‘post_status’=>’publish’, ‘posts_per_page’=>-1)); ?> <?php if ( $wpb_all_query->have_posts() ) : ?> <ul> <!– the loop –> <?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/353211/<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endwhile; ?> <!– end of the loop … Read more