Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // For Donncha's Sitewide Tags plugin: Populate tags blog with all posts made before the plugin was added
- // Working version
- $posts = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_status = 'publish'" );
- if ( !empty($posts) ) {
- foreach ( $posts as $post ) {
- if($post != 1 && $post != 2)
- sitewide_tags_post($post, get_post($post));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement