Bulk data save in custom table
Bulk data save in custom table
Bulk data save in custom table
Edit multiple posts featured image
WordPress Automated Posts Creation
get the queried_object of an url
We tried with couple of plugins , but there isn’t any with option to bulk delete images by month or year. If you have access to wp-cli you can try to delete attachments by year and month with: wp post delete $(wp post list –post_type=”attachment” -—year=2016 -—monthnum=12 –format=ids) or just by year with: wp post … Read more
I wouldn’t recommend to use update_option for this task. Why? Because themes/plugins may use switch_theme action and it won’t get run in such case. And this action is pretty important – it will allow you to save your widgets for example… Another problem with Fuxias answer is that she uses template_directory hook. But there is … Read more
So just thought I would update with the solution I came up with incase anyone run across this in the future. What I did was rebuild the url in the function and pass the ids in the url to the template page. function custom_bulk_action() { global $typenow; $post_type = $typenow; if($post_type == ‘post_type’) { // … Read more
I don’t think you’ve provided enough information to give you a clear answer. Perhaps explain what you are doing when you Update the post – are you changing something first? And – is this a task you only need to do once, or will you need to do it regularly? WordPress doesn’t have Custom Post … Read more
This is what worked for me: function remove_false_words($slug) { if(!is_page()) if (!is_admin()) return $slug; $keys_false = array(‘unwanted’,’word’); $slug = explode (‘-‘, $slug); $slug = array_diff($slug,$keys_false); return implode (‘-‘, $slug); } add_filter (‘sanitize_title’, ‘remove_false_words’); Then you can use wordpress dashboard to select all posts, bulk edit, Update. And the words will be removed from slugs with … Read more
With functions like get_terms, there is an argument hide_empty that will allow terms without associated posts to be shown. Set hide_empty to 0 and you will see your terms.