The tag has no usage guidance.

learn more… | top users | synonyms

12
votes
1answer
1k 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 ...
12
votes
1answer
5k views

Custom bulk_action

I would like to add a custom bulk action to a custom post type. I came across the filter bulk_actions-screenid, which according to its documentation, would do exactly as I wish. However, after about ...
5
votes
2answers
3k views

How to implement bulk actions in my plugin?

I am developing a WordPress plugin. This plugin displays a list of courses. Now I want to implement the bulk actions just like in other plugins. From where I can apply the delete and edit actions to ...
4
votes
2answers
2k views

How to make custom bulk actions work on the media/upload page?

I'm adapting a script I found online to add custom bulk actions to the screen with the list of posts. It has this line: add_action('load-edit.php', 'custom_bulk_action'); I'm trying to adapt it for ...
3
votes
3answers
2k views

Bulk post type conversion

I have been given a client's wordpress site to update & improve. Biggest problem - I need to take about 200+ posts of a specific category, 'reviews' and convert them all into a custom post type '...
3
votes
1answer
728 views

Bulk term assignment for attachment taxonomies

I've created a custom taxonomy for attachments. Everything ok, but now I want the ability to bulk assign its terms to attachments using the default wordpress media admin ('upload.php') bulk actions. ...
3
votes
1answer
197 views

Fill post titles from post content?

I imported over 1000 posts from a Tumblr gallery. All the posts are untitled, but each has a photo and name inside of the post. How do I make take the content of each post and make it the post name?
3
votes
2answers
1k views

Add mass action to wp-admin/users.php

I'm heavelly modified my Wordpress, it's amazing what you can do with wordpress hooks, actions.. But i'm not able to find how can i add mass action for users. Let's say i select 5 users and i want to ...
3
votes
2answers
550 views

Custom bulk actions in WP 3.7.1

So I am trying to get a custom bulk action to work in Wordpress 3.7.1 and so far no luck. The basis I am using is http://www.skyverge.com/blog/add-custom-bulk-action, and it goes wrong here: $...
2
votes
2answers
2k views

wp_list_table bulk action button is not working - no submit

I have a custom wp_list_table to create my own table. Almost everything works perfect, but the bulk action button seems to be not working. It's proper displayed,but on click nothing happens. I think ...
2
votes
2answers
714 views

How to verify nonce from Bulk/Quick Edit in save_post?

I need to do something specific in my save_post callback for bulk and/or quick edits, so how do I check the nonce for that? I can only find _wpnonce in the edit.php html source, but can't find an ...
2
votes
2answers
366 views

Is there an equivalent to Drupal's Batch API in WordPress?

I'm wondering if there is some sort of equivalent to Drupal's Batch API in WordPress? Basically, the API allows you to register a batch request and Drupal will call your function over and over again (...
2
votes
1answer
917 views

How to upload thousands of images?

I have a website and 6000+ images in my computer. I am trying to upload 1000 pictures but it's not working, how can I upload all pictures in one and easy step for time saving?
2
votes
1answer
598 views

How to prevent custom fields from being cleared during a bulk edit?

In my function for saving custom field values I add a few checks to prevent the values from being cleared during an autosave or a quick edit. add_action('save_post', 'save_my_post'); function ...
2
votes
1answer
479 views

How do I limit the status options for bulk/quick edit to only Published and Draft?

For my custom post type, I only want to have "Published" and "Draft" as the available options in the bulk edit and quick edit screens, i.e. I tried hooking on to the filter ...
2
votes
1answer
738 views

Invalid Post Type error when attempting to filter and Bulk Edit posts

WP 3.8.1 Posts Categories: News 1.1 Press Release 1.2 etc. Blog 2.1 Technology 2.2 Around The World 2.3 Eetc. "Invalid Post Type" example: Posts => Filter by "Press Release" + checkmark ALL + ...
1
vote
2answers
4k views

Bulk Image Uploader to create new post from each image [closed]

Is there any plugin which creates a new post from each image I upload/select with it? I want to create many posts with one image per post. Currently I select, upload all images. Then create new post, ...
1
vote
2answers
837 views

Remove all links to a specific website

So, my cousin owns a fashion blog and she recently had a fall out with a brand of shoes and she wants to remove all the links on all posts that point to the brand website. So, is there a way I can ...
1
vote
2answers
828 views

How to implement WP_List_Table functionality for custom plugins (OR any substitution for wp_list_table plugin) for bulk action

In the WordPress codex, following is highlighted in red for WP List Table. "This class's access is marked as private. That means it is not intended for use by plugin and theme developers as it is ...
1
vote
1answer
665 views

Bulk edit post date in wordpress

I need to edit the date of several posts, change it to a specific date, all posts should have the same date. How can I achieve this? Is there any fuction to add to the functions.php to add this ...
1
vote
1answer
960 views

Remove bulk actions based on user role or capabilities

How can I remove the "bulk actions" based on user roles or capabilities. Actually I have this code to do the job, but now I need to exclude the site admin, I need to let the administrator to access ...
1
vote
1answer
218 views

Creating bulk posts with Youtube videos

I'm a bit new to Wordpress and I'm a bit lost reading all sort of docs about creating bulk posts using PHP. I've wrote a small code that using Youtube API v3 to get all the videos from a Youtube ...
1
vote
1answer
2k views

Custom bulk action for media gallery items

I'm trying to add custom "Bulk Actions" to WP 3.5 new media gallery items. I started from this excellent tutorial which does exactly what I need, but with regular posts; so i tried to adapt it to work ...
1
vote
2answers
5k views

wp_list_tables bulk actions

How to fire on bulk actions inside of an extended WP_List_Table. I have been adding the following bulk actions to may table's select box but on Apply won't really happens anything here are how I ...
1
vote
1answer
6k views

how to make custom bulk actions for a WP_List_Table (core class)

I am using the WP_List_Table class and I added the links for the actions like this: function get_bulk_actions() { $actions = array(); $actions['approv'] ='<a href="#">'.__( '...
1
vote
2answers
582 views

Bulk category update is not updating

I am using wordpress 3.1. and I have to reorganize categorize my posts. For this purpose, I am willing to remove some categories. Therefore, after login to admin section of my blog, I go to post > ...
1
vote
1answer
51 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 ...
1
vote
1answer
54 views

How do i change page template in bulk?

Googled for a long time, but did not find any solution. The case is - I have 950 pages I'd like to switch to other template. If i do it manually - it will take some time. If I do it via admin panel - ...
1
vote
1answer
16 views

New users not showing up in Post -> Edit

Background: A client has used first and last names as the user names, and we are trying to replace the old users with new users with more secure user names. We need to assign the posts for the old ...
1
vote
1answer
309 views

How to mass delete one line from all posts

I need to delete some content from all posts. Every post starts with this line: <p style="text-align: center;"><img src="http://i.imgur.com/picture.jpg" alt="" /></p> So I want ...
1
vote
1answer
278 views

Bulk edit contents of pages

I would like to know how to edit the content area for many pages. I have many options for bulk editing of pages, such as parent and sidebar, like this image: But I can't do this for the actual ...
1
vote
1answer
118 views

Custom Field Create Bulk via SQL Query

I have a question. A created a custom field named video_desc. I have ofer 2000 posts and I need to add this custom field to all posts and add the text "Description Here" to it. How can this be done ...
1
vote
1answer
648 views

Update post meta on bulk edit / update

I have a small problem with a code that works most of the time. I just discovered it cannot be used when I bulk edit custom post type. If I'm on individual post page and hit publish, the custom post ...
1
vote
2answers
927 views

Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible

I'm trying to create a custom post type and I've had the same problem that's described here; my custom meta information was properly saved, when saving manually, but got lost as soon as the autosave ...
1
vote
1answer
960 views

Bulk Custom Menu and Wp-Ecommerce

I have to add a lot of items in wordpress menu (lot of 2nd level items) is there any bulk menu item creation method available to do it ? is there any way to add wp-ecommerce categories in wordpress ...
1
vote
0answers
35 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? ...
1
vote
1answer
1k views

How to create bulk page and content? [closed]

I am creating a website about cars. I want to have a page for each car, with subpages (i.e. Gallery, Specs, etc...) for each car page. I have the content on my hard drive for each car. Doing this ...
1
vote
0answers
87 views

Added new bulk action, but only work on bottom dropdown

I've added Archived bulk Action to my CPT, but my problem is that everything work fine only if we select the action in the second dropdown. That's how i've added the new Bulk Action add_action('...
1
vote
2answers
488 views

Bulk edit custom excerpt text in WordPress

Is there a way to bulk edit the custom excerpt text without going to each post and open it? When we have 300 posts it can be a very time consuming process.
1
vote
0answers
408 views

Bulk update all posts from plugin settings screen

I'm writing a plugin right now that will populate custom metadata for all posts on the site based on a certain rule. I've already created a Plugin's settings page and a logic that should be triggered ...
1
vote
2answers
1k views

how to edit title of bulk posts?

I have got hundreds of posts published but with inappropriate titles. I want to edit/updates titles. I have those all titles in a .txt file which I want to have them on the posts. If there is any ...
0
votes
2answers
149 views

Modify wording of bulk options

I would like to modify the wording in the bulk actions on the posts screen or custom post types. I am trying to do so using the following code, but it's not working. Any idea why? add_filter( '...
0
votes
4answers
2k views

How to remove bulk edit options

Is it possible to completely disable Bulk Edit functionality? I'm using Wordpress 3.1.
0
votes
1answer
152 views

How can I hook into existing WordPress Bulk actions?

I am creating a plugin which syncs both standard WP data and custom fields within a custom meta box on post edit pages, to an external resource using SQL queries. However my functions are currently ...
0
votes
1answer
626 views

UWooCommerce - add cart discount programmatically?

I need to develop a plugin that applies a discount to the cart if x number of products have been purchased. Could someone point me in the direction of the code/API I need to use. Can find nothing ...
0
votes
1answer
37 views

Renaming Custom Taxonomy Values

I'm new to Wordpress and have been tasked to migrate an existing non-Wordpress site to Wordpress. Our original site has each page associated to a country. I've been reading a lot and I believe I need ...
0
votes
2answers
2k views

Bulk delete WordPress posts with phpMyAdmin

I have over 8,000 posts generated by wp-o-matic and I want to get rid of all of them. I want to execute this query in phpMyAdmin. I just want to make sure this is safe to run and it's not wiping out ...
0
votes
3answers
538 views

How To Add One Tag to Multiple Posts?

I have nearly 1500 posts in my wordpress blog. Before moving to a new design, I need to tag all these posts with one tag 'old'. How can I do this? I tried to bulk edit posts and it will always go only ...
0
votes
1answer
484 views

SQL Bulk Move old posts by one author to another category

I'm looking to move a number of old posts by one author from one category to another category and was hoping someone could help me do this? I figure the easiest way would be through an SQL command? ...
0
votes
1answer
125 views

Is the bulk_action hook stable for use in 3.2.X?

Working on a plugin for wp-ecommerce publish / unpublish all items in a category seems the cleanest place to implement this is in the categories page as a bulk action - though numerous google ...