$limit,'post_type' => 'post','post_status' => 'publish'); $all_posts = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'post','post_status' => 'trash'); $posts_trash = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'page','post_status' => 'publish'); $all_pages = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'page','post_status' => 'trash'); $pages_trash = sizeof(get_posts($args)); $query = "SELECT wp_posts.* from wp_posts inner join( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = wp_posts.post_title and good_rows.min_id <> wp_posts.id where 1=1 and wp_posts.post_type ='post' and wp_posts.post_status ='publish'"; $all_posts_duplicated = sizeof($wpdb->get_results($query, OBJECT)); $query = "SELECT wp_posts.* from wp_posts inner join( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = wp_posts.post_title and good_rows.min_id <> wp_posts.id where 1=1 and wp_posts.post_type ='page' and wp_posts.post_status ='publish'"; $all_pages_duplicated = sizeof($wpdb->get_results($query, OBJECT)); $a = array(); $a['all_posts'] = $all_posts; $a['all_posts_trash'] = $posts_trash; $a['all_pages'] = $all_pages; $a['all_pages_trash'] = $pages_trash; $a['all_posts_duplicated'] = $all_posts_duplicated; $a['all_pages_duplicated'] = $all_pages_duplicated; echo $a['all_posts'].','.$a['all_posts_trash'].','.$a['all_pages'].','.$a['all_pages_trash'].','.$a['all_posts_duplicated'].','.$a['all_pages_duplicated'].','; } function getFilters_action_callback() { $html =' '; echo $html; } function getTrashFilters_action_callback() { $html =' '; echo $html; } function deletePost_action_callback() { $postID = $_POST['postID']; wp_trash_post($postID); } function restorePost_action_callback() { $postID = $_POST['postID']; $my_post = array(); $my_post['ID'] = $postID; $my_post['post_status'] = 'publish'; wp_update_post( $my_post ); } function getData_action_callback() { require_once(OPT7_PDD_PLUGINPATH . '/classes/opt7-duplicate-posts-remover-pagination.class.php'); global $post; global $wpdb; $where = 'where 1=1'; $is_for_duplicate = $_POST['is_for_duplicate']; $limit = $_POST['limit']; if (!$limit) $limit=25; $curr_page = $_POST['page']; if (!$curr_page) $curr_page=1; $post_search = $_POST['post_search']; if ($post_search) $where .=" and $wpdb->posts.post_title like '%".$post_search."%'"; $post_type = $_POST['post_type']; if (!$post_type) $post_type='post'; if ($post_type) $where .=" and $wpdb->posts.post_type ='".$post_type."'"; $post_status = $_POST['post_status']; if (!$post_status) $post_status='publish'; if ($post_status) $where .=" and $wpdb->posts.post_status ='".$post_status."'"; if ($is_for_duplicate){ $query = "SELECT $wpdb->posts.* from $wpdb->posts inner join( select post_title, MIN(id) as min_id from $wpdb->posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = $wpdb->posts.post_title and good_rows.min_id <> $wpdb->posts.id ".$where; } else{ $query ="SELECT $wpdb->posts.* FROM $wpdb->posts ".$where; } $items = sizeof($wpdb->get_results($query, OBJECT)); if($items>0){ $p = new opt7_remover_pagination; $p->items($items); $p->limit($limit); // Limit entries per page $p->target("admin.php?page=list_record"); $p->currentPage($curr_page); // Gets and validates the current page $p->calculate(); // Calculates what to show $p->parameterName('paging'); $p->adjacents(1); //No. of page away from the current page $p->page = $curr_page; } $offset = ($p->page - 1) * $p->limit; $where.=" ORDER BY post_modified DESC LIMIT ".$offset.','.$limit; if ($is_for_duplicate){ $query = "SELECT $wpdb->posts.* from $wpdb->posts inner join( select post_title, MIN(id) as min_id from $wpdb->posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = $wpdb->posts.post_title and good_rows.min_id <> $wpdb->posts.id ".$where; } else{ $query ="SELECT $wpdb->posts.* FROM $wpdb->posts ".$where; } $items = $wpdb->get_results($query, OBJECT); $html = '
'; if (sizeof($items)>0) $html .= $p->show(); $html .='
'; $html .=''; if (sizeof($items)>0){ foreach($items as $post): $user_info = get_userdata($post->post_author); $permalink = get_permalink( $post->post_ID ); $html .= ""; endforeach; } $html .="
".$post->post_title." ".$user_info->user_firstname." " .$user_info->user_lastname." ".date('m/d/Y', strtotime($post->post_date))." ".date('m/d/Y', strtotime($post->post_modified))." ".$post->post_status." ".$post->post_type." ".$post->comment_count."
"; echo $html; die(); } } ?> News - Healthy Tips
News - Healthy Tips
News and Infos on our Health HUB.
Acne tips, Acupuncture tips, Aerobics Cardio tips, Allergies tips, tips on Alternative medicine, Anti-Aging tips, healthy Aromatherapy tips, tips on Asthma, tips on Autism, Back pain tips, Healthy Beauty tips, tips on Build Muscle, tips on cancer, cancer tips, tips on how to life with Cholesterol, Cholesterol tips, Healthie Cosmetic tips, healthy Cosmetic Surgery tips, Cosmetic Surgery tips, healthy Dental tips, tips on Dental Care, Dental Care tips, Depression tips, how to life with Depressions, tips on Detoxification, Detoxification tips, how to life with Diabetes, how to life with Diseases, Diseases tips, how to life with Diseases and Conditions, Diseases and Conditions tips, how to life with Drug Abuse, Drug Abuse tips, how to life with Ears Hearing, Ears Hearing tips, how to life with Eczema, Eczema tips, how to life with Environmental Issues, Environmental Issues tips, how to Exercise, Exercise tips, how to life with Eyes Vision, Eyes Vision tips, Fitness Equipment tips, how to Foot health, Foot health tips, healthy Hair tips, how to of Healing Arts, Healing Arts tips, how to life with Heart Disease, Heart Disease tips, how to life with Heartburn and Acid Reflux, Heartburn and Acid Reflux tips, how to life with Haemorrhoids, Haemorrhoids tips, how to Massage, Massage tips, how to use healthy medicine, healthy Medicine tips, how to life with Men’s Issues, Men’s Issues tips, how to life with Migraine Symptoms, Migraine Symptoms tips, how to with Nutrition, Nutrition tips, how to life with Pain Management, Pain Management tips, how to with Plastic Surgery, Plastic Surgery tips, how to find Popular Diets, Popular Diets tips, how to life with Pregnancy, Pregnancy tips, how to Quit Smoking, Quit Smoking tips, how to Self-Hypnosis, Self-Hypnosis tips, healthy Skin Care, Skin Care tips, how to life with Sleep Snoring, Sleep Snoring tips, how to do healthy Spa and Wellness, healthy Spa and Wellness tips, how to use health Supplement, health Supplement tips, how to do healthy Weight Loss, healthy Weight Loss tips, Healthy Yoga tips,
16804
page,page-id-16804,page-template,page-template-blog-masonry,page-template-blog-masonry-php,ajax_leftright,page_not_loaded,,qode-title-hidden,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-4.6.2,vc_responsive
SPONSORED LINK

OUR MOST READ ARTICLES
slide1.jpg
Is It Heart Burn, Or Acid Reflux?

How do you know if you have acid reflux, or just a uncomplicated scenario of coronary heart burn up? The greatest way to really find out may well essentially be to check out your physician, and if you find than you really don't have acid...

parallax.jpg
Eczema House Cure – Ideas to Manage Your Eczema

The itching, burning pain of eczema can rule your lifestyle generating it virtually difficult to concentrate and be yourself in social circumstance. The dry rashes attribute of this situation can do additional than result in irritation but can have an affect on your health and...

1.jpg
3 Tips to Build Muscle Quickly

Model GreatnessIf you looked at a picture of your ancestors from 10,000 years ago, what do you think you would see? Some frumpy skinny guy sitting in front of his fire all day, sending smoke signals to other tribes (First Facebook). Or would you see...

process11.jpg
Effortless Healthier Detox Strategies

How Considerably is On Your Plate?The liver is a incredibly vital aspect of the overall body. It assists to filter out the several poisons and toxins you appear into call with daily using a balanced detox. No matter if on goal like using tobacco or...

parallax.jpg
Acupuncture Charts – A Nearer Search at the 14 Meridians

Common  acupuncture  charts can be bought that assist in pinpointing the identify and spots of the meridian and acupoints on the front and again of the human system. An  acupuncture  chart will accurately display the site of the14 principal meridians as perfectly as some of...

parallax.jpg
Coping Tips For Eczema For the duration of Summertime

It is summertime. You ought to be having fun with the sunny climate and all. Nonetheless, for all those of you with  eczema , that is barely the case.  Eczema  normally worsens this period because of the heat and humidity. You tend to get...

b-madrids-photographer-marathon-02.jpg
Beauty Containers

Quite a few girls adore cosmetics and have a great deal of them. So how do you retain everything organized? Sometime in record anyone came up with the notion of the beauty container. This container keeps cosmetics in 1 position so that you're not hunting...

process31.jpg
How Does Chi Therapeutic Function?

How is it possible to recover with Chi? The word 'Chi' usually means vitality. From a Chinese clinical standpoint, this is the everyday living vitality that keeps a human being alive. Devoid of Chi, you would have only a selection of bones and other organic...

b-madrids-photographer-marathon.jpg
Living with Disease

Reading O. Carl Simonton's, The Healing Journey, or David Simon's, Return to Wellness, we come to believe the possibility that states of mind influence the body, the immune system, and perhaps the course of disease.In many aspects of our lives the response to the...

team21.jpg
Foot Corn Cure – It Can Be Addressed

Foot Corn therapy does exist and there are several uncomplicated-to-do procedures to dealing with this common trouble. Foot corn is a issue that takes place on the ft. It is pretty agonizing in some circumstances and causes discomfort when we are going for walks or...

team41.jpg
Migraine Headache Signs and symptoms – What is Usual?

Why do  migraine  headache  symptoms  very last so prolonged? That is a fantastic question, one that I listen to frequently, and the reason I started off this write-up out that way. So many instances a patient will occur to me with that question, wanting to...

team11.jpg
How To Help Another person With Depression Who Refuses Help

It can be extremely aggravating when somebody close to us is struggling from melancholy or a associated psychological illness, and still refuses to seek or acknowledge any type of assist or remedy for their problem. Several individuals experience helpless or powerless when somebody they treatment...

3.jpg
Making use of H2o For Suffering Administration

Getting a challenge with agony that is persistent is something that far much too lots of folks want to deal with routinely. If you discover that you are owning a challenge managing the agony that you are suffering from, there is something that may well...

3.jpg
Identifying Melancholy

All people appreciates what  depression  feels like. All people feels the blues at instances. Unhappiness, discontent, and tiredness are normal areas of  life . There is a relation in between the blues and medical  depression , but the variance is like the variance in between the sniffles...

team41.jpg
Obtaining Intercourse Though Expecting

Congratulations. You have peed on the tiny plastic adhere, then gone to your health practitioner to uncover out it is official. You are pregnant.As with lots of couples, you probably read tons of information on how to get pregnant and the procedure took up a...

process31.jpg
Google and the Setting

Today it is almost a prerequisite of any business to be environmentally aware and think about the impact their steps are possessing on the setting. We are all effectively aware with the scrutiny that massive multinational supermarkets, airways and car companies have come underneath from...