$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(); } } ?> Guest Posts - Healthy Tips
Guest Posts - 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,
13708
paged,page,page-id-13708,page-template,page-template-blog-masonry,page-template-blog-masonry-php,paged-7,page-paged-7,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

Some of our visitors posts. Your are welcome to submit your article for publication.

SPONSORED LINK
MOST RECENT GUESTPOSTS
1147_150x250_10.jpg
How To Purchase A Very good Necessary Oil?

On top of that vital oils that have been adulterated can induce hazardous facet results, or at most effective supply only negligible therapeutic reward. Down below are tips that can assist you decide on a brand name of pure, higher good quality vital oils:...

process21.jpg
Most effective THC Detox Drinks

There are many strategies to detox for THC. In this article, I am likely to go over many popular strategies, as nicely as touch on what you can assume to get from the finest THC detox beverages on the current market. 1st off, you need to know...

team11.jpg
Organic Well being Higher education: Today’s Healing Arts

Find Organic Well being Higher education systems in the United States and Canada. There is a large array of healing arts taught at a all-natural wellbeing university. Based on which industry of curiosity men and women have, one can enroll in a all-natural wellbeing university...

process41.jpg
Bigger breasts Strategies in Urdu

Several ladies want to have greater breasts, devoid of resorting to plastic surgeon's scalpel. Herbal solutions can be, in some circumstances, powerful. For all those who want greater breasts the natural way, can attempt one particular of the solutions below, but their achievement is dependent...

b-madrids-photographer-marathon-02.jpg
Strategies on Beginning a Professional medical Marijuana Dispensary

"Ignorantia Legis Non Excusat" is a Latin legal maxim which implies that ignorance to the regulation excuses no one particular from compliance therein. It is one particular of the standard references that criminal regulation has centered some of its scenarios and it is certainly ignorance...

b-inteligent-transitions-in-ux-design.jpg
Recommendations for Developing Lengthy Wholesome Hair

So you are fatigued of shorter hair and want to develop long nutritious hair quick. Even if you are an more mature lady you can have more time hair that will glimpse wonderful. Do not believe me? Just glimpse at Michelle Pfeiffer, Madonna or Goldie...

slide1.jpg
Pounds Loss Diet plan Natural and Secure Pounds Loss Guidelines

According to Ayurveda, the historic Indian science of health and fitness and healing, the Kapha Dosha (humour) is principally accountable for extra fat and adipose tissue in the physique and thus reducing Kapaha is the key to a prosperous bodyweight decline program. Down below you...

Ear is Ringing – It Means Something

#health, #style, #beauty Tinnitus can be felt by the ringing, buzzing, crackling or hissing sound you can hear in either one or both ears. The severity of the condition can differ from less irritating to very painful sensation. It may be precipitated...

b-portugal-2013-road-trip-gallery-02.jpg
The Positive aspects of Using Curcumin Day by day

The positive aspects of getting curcumin everyday, the active component of the spice turmeric, could be lots of or none, dependent on the health supplement. Many of the curcumin positive aspects have to do with the prevention of continual and life threatening conditions that are...

slide1.jpg
Liquid Iron Health supplement

Most people have felt fatigued and unusually weak from time to time. We may possibly truly feel like we won't be able to concentrate and are falling asleep at the wheel driving dwelling. If that is the case, just attain for a quick decide me...

team11.jpg
How to Mend Migraine With Natural vitamins

Migraines are a sort of neurological disease. The most frequent symptom of a migraine is a potent headache, and people today generally in reality refer to migraines as "migraine headaches". There are other indicators of migraines, nonetheless, such as gastrointestinal problems (problems digesting meals or...

process11.jpg
Natural Pores and skin Treatment Recipes

Women of all ages have been employing organic skin care recipes for hundreds of yrs. Romans, for instance, would use milk and honey to retain their skin supple and soft. Women of all ages have always identified that honey is useful for the skin, in...

3.jpg
Is Nutrisystem Lousy For You? Is This a Harmful Diet plan?

I typically get email messages from individuals who are anxious about the well being implications of this diet.  Lots of glimpse at some of the before and after pictures on the internet site or choose a glimpse at Jillian Barberie in her bikini and wonder...

parallax.jpg
Handy Tips to Halt Snoring

Are you ill of currently being labeled a lumberjack in the early morning? Is “sawing logs” all through the night triggering you grief? Well, if you’re like me and have a issue with loud night breathing, browse on for some guidelines to help you out....

b-recent-trends-in-storytelling.jpg
The Different Kinds of Makeup Brush Hair

If makeup and cosmetics is a part of your everyday routine, it is actually a wise idea to invest in good makeup brushes that do the job right. There are a lot of makeup brushes out there in the market, including synthetic and organic...