ccreation of filter country sorted and unique

This commit is contained in:
lenovo
2022-11-09 22:09:23 +01:00
parent 7af3572eaa
commit 4e7fa55234
2 changed files with 23 additions and 20 deletions

View File

@@ -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,