public
Last active

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13
<?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;
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.