Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Assume you mean the Hubspot API limit is 20? Have you thought about using the posts_per_page option and the offset parameter? Pagination Codex and WPSE Question Commented Aug 21, 2018 at 14:33
  • I am inserting posts from api outside of wordpress environment and able to add only 20 post each time as per Api limit, total post count in 1906 and if i add limit to infinit i.e. 99999 the api call will stops at 125 posts and the categories of the post at this limit not working means all post goes to uncategorized so i need to call only 20 post each time but how i suppose to part all posts in chunks so after every time only 20 posts will insert and then the offset will change automatically thats i cant figure out how to code it. Commented Aug 22, 2018 at 9:03