Questions tagged [bulk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Post in bulk based on category template

Let's start with an example of what I want to do. take a look at hardreset.info / devicesfaq.com as you can see, the articles are almost the same, they only change few keywords / or based on title (...
user avatar
0 votes
1 answer
166 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 ...
user avatar
0 votes
0 answers
10 views

How create bulk website with amount, total, and checkout fields?

I have google sheet with rows like "Name", "Price". I would like to create website with folowing things: Website automaticly sync with google spreadsheet and update "Name&...
user avatar
0 votes
0 answers
20 views

Efficient way to move media folder to another folder

The media library is currently organized by months and years .../uploads/2021/09/. I'd like to go without the months and year and use the url .../uploads/ for future uploads. For consistency, I'd like ...
user avatar
0 votes
1 answer
53 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 ...
user avatar
1 vote
1 answer
57 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 ...
user avatar
  • 11
0 votes
1 answer
33 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-...
user avatar
1 vote
0 answers
43 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 ...
user avatar
1 vote
0 answers
200 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, '...
user avatar
  • 688
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 ...
user avatar
0 votes
1 answer
166 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 ...
user avatar
0 votes
1 answer
414 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 ...
user avatar
1 vote
1 answer
553 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 ...
user avatar
  • 63
0 votes
0 answers
193 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 ...
user avatar
  • 25
0 votes
1 answer
706 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 ...
user avatar
0 votes
1 answer
200 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 ...
user avatar
0 votes
1 answer
46 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; ...
user avatar
  • 376
1 vote
2 answers
164 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 ...
user avatar
  • 13
0 votes
2 answers
189 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.
user avatar
1 vote
0 answers
470 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" (...
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 ...
user avatar
0 votes
1 answer
662 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: ...
user avatar
  • 103
1 vote
1 answer
5k 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 ...
user avatar
  • 123
1 vote
0 answers
88 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', '...
user avatar
  • 23
0 votes
1 answer
256 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 ...
user avatar
1 vote
1 answer
233 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 ...
user avatar
  • 21
0 votes
0 answers
69 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 ...
user avatar
0 votes
1 answer
648 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
131 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, ...
user avatar
0 votes
2 answers
365 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 ...
user avatar
  • 421
3 votes
1 answer
99 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 ...
user avatar
  • 358
0 votes
1 answer
211 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 ...
user avatar
0 votes
1 answer
46 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, ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 1
2 votes
0 answers
141 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 ...
user avatar
  • 89
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 ...
user avatar
  • 2,004
3 votes
1 answer
2k 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......
user avatar
  • 976
0 votes
0 answers
380 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 ...
user avatar
1 vote
0 answers
99 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( '...
user avatar
  • 348
4 votes
2 answers
5k 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?
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 ...
user avatar
  • 31
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', ...
user avatar
0 votes
1 answer
176 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 ...
user avatar
  • 421
2 votes
1 answer
2k 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 ...
user avatar
  • 23
0 votes
1 answer
262 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 ...
user avatar
1 vote
0 answers
62 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? ...
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 ...
user avatar
  • 733
0 votes
1 answer
2k views

Bulk delete users by role? SQL?

I need to bulk-delete a large number (4,321) of users, all of a particular role type (not an out-of-the-box role name). I have tried several functions found online, and have tried the Bulk Delete (...
user avatar
2 votes
3 answers
3k views

cron job to auto delete posts of a specific post type older than x days

I want to delete all posts of a specific post type (in this case "vfb_entry") that are older than 60 days. The cron job should run once a day. I have the following code but it's not working if I ...
user avatar
1 vote
0 answers
252 views

`bulk_edit_custom_box` mess the input fields

I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default: Than I add the following code: add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );...
user avatar
  • 111