How to limit the number of posts that WP_Query gets?

Posted by Prem Tiwari | Updated on

Lets you have post type called ‘blog_posts’ , and you want to fetch 5 posts of that post type . Here is what you need to do:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers