Question : see all the post in one catagory with out pagination
Answered by : joyous-jay-h2mm7t1nk2nl
<?php
query_posts(array('cat'=>20,'posts_per_page'=>-1));
?>
Source : https://stackoverflow.com/questions/4980473/wordpress-function-to-display-all-posts-without-pagination-with-a-cateogory-id-o | Last Update : Thu, 16 Jul 20
Question : see all the post in one catagory with out pagination
Answered by : joyous-jay-h2mm7t1nk2nl
<?php $posts = new WP_Query(array('cat'=>20,'posts_per_page'=>-1)); ?>
Source : https://stackoverflow.com/questions/4980473/wordpress-function-to-display-all-posts-without-pagination-with-a-cateogory-id-o | Last Update : Thu, 16 Jul 20