Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Testing a thing for Beth.
- *
- */
- // First let's check to make sure this function has not been run before
- if (get_option('changeposttype_has_run') != "yes") {
- //Get all the posts in category 230 - change that number to the category ID of posts you're trying to change
- query_posts("post_type=post&cat=230&showposts=-1&offset=0");
- if (have_posts()) : while (have_posts()) : the_post();
- set_post_type($post->ID, 'uu_services');
- endwhile; endif;
- wp_reset_query();
- //now that function has been run, set option so it wont run again
- update_option( 'changeposttype_has_run', 'yes' );
- }
Advertisement
Add Comment
Please, Sign In to add comment