Killer_Alien_Monk

less info
11 reputation
3
bio website creative-creature.ca
location
age
visits member for 2 years, 1 month
seen Dec 31 '13 at 2:45

Jun
5
answered Custom comments form
Mar
23
awarded  Scholar
Mar
23
accepted How to empty wordpress custom post Database table
Mar
9
awarded  Teacher
Feb
23
answered How to empty wordpress custom post Database table
Feb
23
comment How to empty wordpress custom post Database table
The code for the page template is:<?php // Get 50 custom post types pages, set the number higher if is not slow. $mycustomposts = get_posts( array( 'post_type' => 'movies', 'numberposts' => 300)); echo '<pre>'; print_r($mycustomposts); echo '</pre>'; foreach( $mycustomposts as $mypost ) { // Delete's each post. wp_delete_post( $mypost->ID, true); // Set to False if you want to send them to Trash. } echo '<h1 style=:"color:red;"> DELETED! DELETED! DELETED! DELETED! </h1>'; // 50 custom post types are being deleted everytime you refresh the page.?>
Feb
23
comment How to empty wordpress custom post Database table
I used the wp_delete_post() function to solve this problem. All I did was, created a page template and anytime I went to that page it would delete 300 posts.
Sep
26
comment How to empty wordpress custom post Database table
yes I know that much .. but I have around 2400 posts that is a little too much to delete manually ..
Sep
25
awarded  Editor
Sep
25
revised How to empty wordpress custom post Database table
added 10 characters in body
Sep
25
asked How to empty wordpress custom post Database table
Jul
6
answered How To Create a Meta Box with Html Content with Instructions to Site Editors When Editing a Post or Page?