Linked Questions

9
votes
4answers
2k views

Custom post type - posts list - white screen of death

i am getting a weird error - white screen in the list of posts for a specific Custom post type (just for that one) tried deactivating all the plugins tried checking for error (debugging = true) ...
20
votes
1answer
2k views

Optimize post insert and delete for bulk operations?

Not much noticeable when working with individual posts, but when you create or delete multiple thousands in bulk and by code - process is quite slow. Are there any good tweaks to apply and corners to ...
6
votes
3answers
2k views

wp_insert_post extremely slow on big table, direct query very fast

My posts table is about 600K, and I don't consider this big at all. Anyway wp_insert_post is becoming very slow. I am trying to import a huge list of hotel information into Posts. The list is about ...
4
votes
1answer
2k views

Creating 20,000 Posts or Pages using a .csv file?

Here's my challenge: I have a .csv file which contains 20,000 rows of data. Each row contains 5 columns of data on an particular individual. I need each row (each person) to be populated into a ...
2
votes
1answer
969 views

Can I trigger the publish_post hook by using wp_insert_post?

I'm writing a plugin that fetches some data from an XML file and then creates a post based on its content. I was thinking of using wp_insert_post() to publish the new post, but I have some functions ...
2
votes
1answer
742 views

XMLRPC Avoid duplicate content

I want to avoid duplicate post content via xmlrpc. So: if post exists nothing happens... . if does not exists data insertion occurs... . The method for checking would be post title or post ...
1
vote
1answer
1k views

wp_insert_post() getting slower the more posts

I have written a bulk import script where I import posts with the wp_insert_post() function and add 1 meta value and 1 term to the post. I have done 6 times of 7000 posts now, but for some reason the ...
3
votes
1answer
576 views

Resource Issues: Importing external data into custom post type and keeping records up to date

I have a custom post type that imports external data nightly. When the import script runs for the first time, it imports approximately 4,000 records (data will grow). Each record consists of a post ...
0
votes
0answers
521 views

Set post terms for multiple posts

I have got array of post ids and I want to add term to each of this post. It could be done by loop over each post id and using wp_set_post_terms, for example $term_id = 10; // for example $taxonomy = ...
1
vote
1answer
403 views

WordPress CSV Importer takes a long time to finish

I have created a lot of custom CSV importers for WordPress in the past and I have come across issues related to the time it takes for them to finish processing. Whenever the importer starts running, ...