$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
page,page-id-13708,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

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

SPONSORED LINK
MOST RECENT GUESTPOSTS
b-inteligent-transitions-in-ux-design.jpg
Minimizing Stress with Self Hypnosis

Minimizing Stress with Self HypnosisBy Alan Crossley, C.Ht, NLP We are consistently bombarded as a result of the media with ads that are created to make us truly feel unacceptable, disappointed, unfulfilled, about body weight and in want of a rapid resolve.  Of class the...

b-madrids-photographer-marathon.jpg
The Worth of Hearing Health

Hearing is as significant as with our other senses. If we are unable to listen to, how can we enjoy the appears of mother nature, the songs that uplifts our soul, or listen to the variety and loving words and phrases from our liked types,...

b-portugal-2013-road-trip-gallery-02.jpg
Archery Equipment – A Few Basic Terms

Archery has become a very popular sport, and with a little understanding of a few basic terms, you should be able to get started in this great sport. Here are a few basic terms to help you get started in archery. Adjusting draw weight -...

team41.jpg
Migraine – Causes, Signs or symptoms and Cure

Migraine is a neurological disease of which the most frequent symptom is an extreme and disabling episodic headache. Migraine problems are generally characterized by critical pain on a single or both of those sides of the head. Absent serious head accidents, stroke, and tumors, the...

b-inteligent-transitions-in-ux-design.jpg
Financial Depression Survival Suggestions

The next financial despair survival recommendations are all about preparation. With a little bit of street smarts and a willingness to do what is actually needed you can survive shedding every thing. But it is far better to prevent that from taking place in the...

b-portugal-2013-road-trip-gallery-01.jpg
Societal Promoting: Mcdonald’s

Societal marketing: McDonald's Business executives are typically perplexed by the continual growth of society's expectations of businesses. For case in point, in the company planet, several legal guidelines and substantial government regulation have an effect on almost every facet of enterprise pursuits. They contact "virtually...

process41.jpg
5 Top Tips to Know About Smart Liposuction

What exactly is smart liposuction? Is it a new form of liposuction? No, not really. In a nutshell, smart liposuction is knowing what kind of liposuction surgery you want, the results you are hoping to achieve, and how to go about attaining what you desire.1...

process41.jpg
Guidelines on Creating a Home Gym

Acquiring in form is on the minds of numerous men and women these times. Some opt for to receive health and fitness center memberships whereas many others would like to have the benefit of doing the job out at house. For the latter team of...

1.jpg
Imagine Life without Back and Neck Pain

#PopularDiets #Diets #Pregnancy #QuitSmoking Our bodies are finely tuned machines and are very effective in their workings. However, like all machines they cannot function at their...

team41.jpg
Have Well-known Diet program Plans Unsuccessful You?

Dieting is about restricting what we take in or how a great deal we take in in purchase to get rid of bodyweight. Nonetheless weight loss plans do not teach us how to adjust our existence. How do we adjust our life-style? Is it with...

team31.jpg
Tips on How to Gain Pounds and Build Strong Muscle

How to gain pounds seems like it should be simple to do but for many it can be as difficult as losing weight is for most people. Being skinny may be fine for those super models but unless you're being photographed by a professional it...

b-portugal-2013-road-trip-gallery-02.jpg
Working with breakup melancholy

How can i offer with breakup melancholyBreakup melancholy is essentially what a lot of persons deal with right after separation with their associates. So in this write-up I will let you know how to offer with breakup melancholy and get on with lifetime.In advance of...

parallax.jpg
The Most Famed Meal plans in the Environment

Dietology is a science of our bodies’ beauty. Human staying is wonderful due to the fact the working day of his generation, that is why our want to have a nice young entire body is normal. This want is hundreds of yrs aged. These days...

process11.jpg
Major Ten Strategies to Prevent Smoking cigarettes

Smoking cigarettes cessation is an unpleasant expertise from whichever facet you search at it. You will have to cope with the cravings and all the withdrawal signs or symptoms, you will have to conquer up the smoking routine and improve your way of life completely....

b-portugal-2013-road-trip-gallery-01.jpg
Drug Abuse

In essence, persons can obviously detoxify toxic substances without the need of assist. Nevertheless, with the escalating amount of money of toxic compounds that are remaining ingested into the overall body through drinking water use, environment, and the foods that persons consume, can build up.Detox...