Articles of bulk

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 trigger the cron job. However, running only the query in phpMyAdmin returns the correct result. […]

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 the bulk menu add_filter( ‘bulk_actions-‘ . ‘edit-post’, ‘__return_empty_array’ ); add_filter( ‘bulk_actions-‘ . ‘upload’, ‘__return_empty_array’ ); How […]

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 feature? I cant find a solution.

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 subject to change without warning in any future WordPress release.”. Is there any way to add bulk action and […]

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 automatically via SQL commands or maybe a plugin check all posts on […]

Bulk Image Uploader to create new post from each image

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, name it same as image file name, insert image from media library and then save to draft/publish it

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 + Edit + Apply + I change the author name + Apply: wp-admin/edit.php?s=&post_status=all&post_type=Array I basically want to change all Press Release author names. […]

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 quick_edit_dropdown_pages_args but it doesn’t seem to get fired. I inserted a wp_die() in my callback but the admin screen lists all posts […]

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?

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?