WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_insert_post only inserting first 2000 posts (3 posts)

  1. aclight
    Member
    Posted 9 months ago #

    Exactly as title says. Trying to do an import of approximate 25,000 items, but only first 2000 are being imported. Is this due to my host, or is it a limit of WordPress itself? Is there any way to get around this?

    Haven't been able to find this issue anywhere.

    Thanks.

  2. esmi
    Forum Moderator
    Posted 9 months ago #

    Best guess: the import is timing out because it is exceeding your server's max_execution time. Try splitting the import file down into smaller chunks - each one chunk being 1 meg or less.

  3. aclight
    Member
    Posted 9 months ago #

    Hi Esmi,

    Thanks for the feedback. I upped the limit on max_execution_time and nothing happened. Found out that the limit is because of the API that we're trying to integrate with. :(

    Thanks for your help!

Reply

You must log in to post.

About this Topic