Created
November 29, 2009 00:40
-
-
Save hunk/244722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('wp-config.php'); | |
include('wp-load.php'); | |
global $wpdb; | |
$category_id = 11; // ID of the category | |
$write_panel_id = 5; // ID of the Write Panel | |
$add = new WP_Query('cat='.$category_id); | |
if ($add->have_posts()) : while ($add->have_posts()) : $add->the_post(); | |
update_post_meta($post->ID, "_mf_write_panel_id", $write_panel_id); | |
endwhile; endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment