Questions tagged [bulk]
The bulk tag has no summary.
124 questions
1 vote
1 answer
85 views
Check nonce in the new bulk_edit_posts action
In a plugin I'm developing, I need to add the ability to bulk edit some meta fields in a custom post named "lot". I want to use the new bulk_edit_posts hook added in WP 6.3. This is the code ...
0 votes
0 answers
124 views
Bulk data save in custom table
I have a form in admin page that store data in custom table, with multiple checkboxs. On form submit I need to save the checked box id with the store id it's related in a key pair way (store_id => ...
0 votes
0 answers
34 views
Wordpress Automated Posts Creation
I have already read the question on: Automating Page Creation and the possible suggestion, but I want to have another discussion here. So, I am having a python scraper which gets 1000s of results ...
2 votes
2 answers
1k views
Bulk delete media by year
We have large media library with more than 300000 images. We decide to delete all images < 2017 year manually using "FTP", from WP upload folder. But after that in WP Admin > Media >...
0 votes
1 answer
201 views
Meta field bulk editing no longer working in WP 6.0 [closed]
Until recently, I was using the following PHP and jQuery code for adding bulk editing support for a meta field (price) in a custom post type (Book): PHP: function show_bulk_edit_book_metabox( $...
0 votes
2 answers
733 views
Bulk-add featured images in posts with no featured image
I have a site with loads of posts (news items). Some posts don't have featured images yet. Adding the images to those posts (few hundreds) is a tedious task. We basically want to add 1 and the same ...
1 vote
2 answers
2k views
How to change my 3000 Published post status to Draft using PHPMyAdmin
I have to change my all 3000 published post status to draft. one way to do it one by one or another option is to select bulk post... but bulk selecting also takes a lot of time because I have around ...
0 votes
1 answer
290 views
Bulk updating a group of WordPress Pages every 10 minutes
I need to bulk update 86 specific WordPress Pages every 10 minutes, with the term updating I mean the same thing as clicking the Blue Update Button on each page, and having them all update at the same ...
1 vote
1 answer
218 views
Code run fast on a cronjob but slow with a do_action or ajax call
I am creating several posts from a csv, when I execute the code using a cronjob the operation lasts about 7 minutes, but if I use the code directly in a template, or make a call to do_action or ...
0 votes
1 answer
51 views
Moving post's content to post's comments section
I've resurrected a Blogger blog from the Wayback Machine. The business that did the migration had all of the blog's comments in each post included in the post itself. I would like to keep the years-...
1 vote
0 answers
245 views
Bulk-create posts from SQL database
I'm new in this forum and fairly new to Wordpress as a whole, so I hope I will abide by all written and unwritten rules when posting this. I have an SQL database with around 4,000 posts from an old ...
2 votes
3 answers
2k views
Bulk Update Custom Fields for Custom Post Types
I am using this function which works great in case anyone wants to bulk update custom fields for custom post types (just change parameters as necessary). $args=array( 'posts_per_page' => -1, '...
1 vote
3 answers
2k views
How to mass delete one line from all posts after site hack
My Wordpress site has been hacked and every post has had <script src='https://crow.lowerthenskyactive.ga/m.js?n=ns1' type='text/javascript'></script> added to the end of each post which I ...
-1 votes
1 answer
237 views
Bulk update custom post types
I'm using built in theme custom post types and I made XML import with posts to this custom post types. Everything work, but not a filter for these custom post types. If I update manually every custom ...
0 votes
1 answer
900 views
How to get inserted row IDs for bulk/batch insert with wpdb query?
I'm writing a plugin where I need to save data in custom tables, function hits an API and then saves data for which I need bulk insert, but as wpdb doesn't support it out of the box I made a function ...