You’ll see there are different parameters for WP_Query
, you just need to add the posts_per_page
parameter with the value set to -1
to show all posts. simple it, I will explain it as : posts_per_page is like how many posts the $products_ID->have_posts() can contain. For example, if you set it to 10, you’ll get 10 posts on yoursite.com/ then you must go to yoursite.com/page/2 to get the 10 next posts. It’s a pagination system, not a page post_type