ccreation of filter country sorted and unique
This commit is contained in:
@@ -99,20 +99,20 @@ function mp_get_published_posts() {
|
||||
// FOR TESTS
|
||||
// script to publish or unpublish posts
|
||||
//
|
||||
$post_args = array(
|
||||
'numberposts' => -1,
|
||||
'post_status' => 'draft',
|
||||
//'post_status' => 'publish',
|
||||
'post_type' => 'post',
|
||||
);
|
||||
$post_list = get_posts($post_args);
|
||||
foreach ($post_list as $post) {
|
||||
wp_update_post(array(
|
||||
'ID' => $post->ID,
|
||||
//'post_status' => 'draft',
|
||||
'post_status' => 'publish',
|
||||
));
|
||||
};
|
||||
// $post_args = array(
|
||||
// 'numberposts' => -1,
|
||||
// 'post_status' => 'draft',
|
||||
// //'post_status' => 'publish',
|
||||
// 'post_type' => 'post',
|
||||
// );
|
||||
// $post_list = get_posts($post_args);
|
||||
// foreach ($post_list as $post) {
|
||||
// wp_update_post(array(
|
||||
// 'ID' => $post->ID,
|
||||
// //'post_status' => 'draft',
|
||||
// 'post_status' => 'publish',
|
||||
// ));
|
||||
// };
|
||||
|
||||
$get_posts_args = array(
|
||||
'numberposts' => -1,
|
||||
|
||||
Reference in New Issue
Block a user