Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 5 years ago.
Improve this questionI have a small wordpress blog. There are around 50 posts in the blog. I want to create a page which will enlist all the post titles. I have used "W4 Post List" wordpress plugin but that doesn't solve my issue. Please suggest me any alternative wordpress plugin or code.
Closed. This question is off-topic. It is not currently accepting answers.Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 5 years ago.
Improve this questionI have a small wordpress blog. There are around 50 posts in the blog. I want to create a page which will enlist all the post titles. I have used "W4 Post List" wordpress plugin but that doesn't solve my issue. Please suggest me any alternative wordpress plugin or code.
Share Improve this question asked Nov 24, 2019 at 10:00 macX TutorialsmacX Tutorials 11 bronze badge 3- "W4 Post List" looks like interesting. what doesn't fit with it ? – Kaperto Commented Nov 24, 2019 at 10:19
- Please suggest me some alternative – macX Tutorials Commented Nov 24, 2019 at 10:31
- 1 if you want help, a good start is to answer the questions idownvotedbecau.se/itsnotworking – Kaperto Commented Nov 24, 2019 at 10:43
1 Answer
Reset to default 0first, 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="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<!-- end of the loop -->
</ul>
<?php wp_reset_postdata(); ?>
<?php else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
for custom page template visit this link and for WP_Query visit this link