• I am trying to query custom posts from my wp backend, but it is limiting the posts to 10 per query. I cannot find where the arguments are set inside of any functions.php file like most other forums recommend.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In your query you can set ‘posts_per_page’=>-1
    to show all the posts.

    Kind regards

    In functions.php , the query you have written to fetch the custom posts , remove the argument post_per_page , that will yield all the posts.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove post-per-page limit for API integration’ is closed to new replies.