Large number of queries from a theme [on hold]

I have built a wordpress theme, which I lately discovered it’s executing a large number of MySQL queries (172 queries in 0.278 seconds.), even when plugins are disabled.

I believe this is upnormal, and would slow down the site and consume large resources.

Here’s 50% of the outout of the queries executed in a single post page.

Please help me reduce and correct the number of the queries.

    (
        [0] => SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'
        [1] => 0.000950813293457
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), wp_not_installed, is_blog_installed, wp_load_alloptions
    )

[1] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'uninstall_plugins' LIMIT 1
        [1] => 0.000113964080811
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/register-plus-redux/register-plus-redux.php'), Register_Plus_Redux->__construct, register_uninstall_hook, get_option
    )

[2] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'register_plus_redux_usermeta-rv2' LIMIT 1
        [1] => 9.58442687988E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/register-plus-redux/register-plus-redux.php'), get_option
    )

[3] => Array
    (
        [0] => UPDATE `wp_options` SET `option_value` = 'O:29:"WPtouchDefaultSettingsBNCID30":6:{s:5:"bncid";s:0:"";s:19:"wptouch_license_key";s:0:"";s:16:"license_accepted";b:0;s:21:"license_accepted_time";i:0;s:22:"next_update_check_time";i:1393461900;s:8:"failures";i:0;}' WHERE `option_name` = 'wpts_bncid'
        [1] => 0.000154972076416
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, wptouch_create_three_object, WPtouchProThree->initialize, WPtouchSettings->save, WPtouchProThree->save_settings, update_option
    )

[4] => Array
    (
        [0] => SELECT * FROM wp_users WHERE user_login = 'mido'
        [1] => 5.3882598877E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/theme-options.php'), wp_get_current_user, get_currentuserinfo, wp_validate_auth_cookie, get_user_by, WP_User::get_data_by
    )

[5] => Array
    (
        [0] => SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC
        [1] => 4.60147857666E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/theme-options.php'), wp_get_current_user, get_currentuserinfo, wp_validate_auth_cookie, get_user_by, WP_User->init, WP_User->for_blog, WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache
    )

[6] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_feed_646e5d3d24d5a92ee192b3c2a4525a4b' LIMIT 1
        [1] => 0.000159025192261
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/extra-func.php'), fetch_feed, SimplePie->init, SimplePie->fetch_data, WP_Feed_Cache_Transient->load, get_transient, get_option
    )

[7] => Array
    (
        [0] => SELECT autoload FROM wp_options WHERE option_name = '_transient_feed_646e5d3d24d5a92ee192b3c2a4525a4b'
        [1] => 7.9870223999E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/extra-func.php'), fetch_feed, SimplePie->init, SimplePie->fetch_data, WP_Feed_Cache_Transient->load, get_transient, delete_option
    )

[8] => Array
    (
        [0] => SELECT autoload FROM wp_options WHERE option_name = '_transient_timeout_feed_646e5d3d24d5a92ee192b3c2a4525a4b'
        [1] => 7.91549682617E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/extra-func.php'), fetch_feed, SimplePie->init, SimplePie->fetch_data, WP_Feed_Cache_Transient->load, get_transient, delete_option
    )

[9] => Array
    (
        [0] => SELECT autoload FROM wp_options WHERE option_name = '_transient_feed_646e5d3d24d5a92ee192b3c2a4525a4b'
        [1] => 3.2901763916E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/extra-func.php'), fetch_feed, SimplePie->init, SimplePie->fetch_data, WP_Feed_Cache_Transient->unlink, delete_transient, delete_option
    )

[10] => Array
    (
        [0] => SELECT autoload FROM wp_options WHERE option_name = '_transient_feed_mod_646e5d3d24d5a92ee192b3c2a4525a4b'
        [1] => 7.70092010498E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include('/themes/web14/functions.php'), require_once('/themes/web14/custom/custom-functions.php'), require_once('/themes/web14/custom/extra-func.php'), fetch_feed, SimplePie->init, SimplePie->fetch_data, WP_Feed_Cache_Transient->unlink, delete_transient, delete_option
    )

[11] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_pages' LIMIT 1
        [1] => 0.000172853469849
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[12] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_calendar' LIMIT 1
        [1] => 9.91821289062E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[13] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_tag_cloud' LIMIT 1
        [1] => 8.08238983154E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[14] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_nav_menu' LIMIT 1
        [1] => 7.60555267334E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[15] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_post-views' LIMIT 1
        [1] => 7.5101852417E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[16] => Array
    (
        [0] => SELECT option_value FROM wp_options WHERE option_name = 'widget_snlnksflwus' LIMIT 1
        [1] => 7.70092010498E-5
        [2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option
    )

[17] => Array
    (
        [0] => SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.post_name = '%d8%b3%d8%b9%d8%b1-%d8%a7%d9%84%d8%af%d9%88%d9%84%d8%a7%d8%b1-%d9%81%d9%8a-%d8%a7%d9%84%d8%b3%d9%88%d9%82-%d8%a7%d9%84%d8%b3%d9%88%d8%af%d8%a7%d8%a1-2' AND wp_posts.ID = 62492 AND wp_posts.post_type = 'post'  ORDER BY wp_posts.post_date DESC 
        [1] => 5.81741333008E-5
        [2] => require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
    )

[18] => Array
    (
        [0] => SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (62492) ORDER BY t.name ASC
        [1] => 4.2200088501E-5
        [2] => require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms
    )

[19] => Array
    (
        [0] => SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (62492) ORDER BY meta_id ASC
        [1] => 0.000256061553955
        [2] => require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_postmeta_cache, update_meta_cache
    )

[20] => Array
    (
        [0] => SELECT author_advertising FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.38554382324E-5
        [2] => require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, kd_init_author_id, kd_get_google_id
    )

[21] => Array
    (
        [0] => UPDATE `wp_options` SET `option_value` = 'pub-8074312157833734' WHERE `option_name` = 'kd_current_id'
        [1] => 0.000659942626953
        [2] => require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, kd_init_author_id, update_option
    )

[22] => Array
    (
        [0] => SELECT * FROM wp_users WHERE ID = '1663'
        [1] => 6.69956207275E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, GA_Filter->spool_analytics, get_the_author_meta, get_userdata, get_user_by, WP_User::get_data_by
    )

[23] => Array
    (
        [0] => SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1663) ORDER BY umeta_id ASC
        [1] => 5.10215759277E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, GA_Filter->spool_analytics, get_the_author_meta, get_userdata, get_user_by, WP_User->init, WP_User->for_blog, WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache
    )

[24] => Array
    (
        [0] => SELECT p.ID FROM wp_posts AS p  WHERE p.post_date < '2014-02-27 01:22:41' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date DESC LIMIT 1
        [1] => 6.38961791992E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_adjacent_post
    )

[25] => Array
    (
        [0] => SELECT * FROM wp_posts WHERE ID = 62494 LIMIT 1
        [1] => 5.60283660889E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_adjacent_post, get_post, WP_Post::get_instance
    )

[26] => Array
    (
        [0] => SELECT p.ID FROM wp_posts AS p  WHERE p.post_date > '2014-02-27 01:22:41' AND p.post_type = 'post' AND p.post_status = 'publish'  ORDER BY p.post_date ASC LIMIT 1
        [1] => 4.91142272949E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, adjacent_posts_rel_link_wp_head, adjacent_posts_rel_link, get_adjacent_post_rel_link, get_adjacent_post
    )

[27] => Array
    (
        [0] => SELECT * FROM wp_posts WHERE ID = 62499 LIMIT 1
        [1] => 6.69956207275E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, wpfbogp_build_head, wp_get_attachment_image_src, image_downsize, wp_attachment_is_image, get_post, WP_Post::get_instance
    )

[28] => Array
    (
        [0] => SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (62499) ORDER BY meta_id ASC
        [1] => 4.79221343994E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), wp_head, do_action('wp_head'), call_user_func_array, wpfbogp_build_head, wp_get_attachment_image_src, image_downsize, wp_attachment_is_image, get_attached_file, get_post_meta, get_metadata, update_meta_cache
    )

[29] => Array
    (
        [0] => SELECT author_custom1 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 4.10079956055E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), tphdrrtcntnt, kd_template_ad, kd_get_ad_ready, kd_get_custom1
    )

[30] => Array
    (
        [0] => SELECT author_custom2 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.2901763916E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), tphdrrtcntnt, kd_template_ad, kd_get_ad_ready, kd_get_custom2
    )

[31] => Array
    (
        [0] => SELECT author_custom1 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.19480895996E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), hdr_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom1
    )

[32] => Array
    (
        [0] => SELECT author_custom2 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.19480895996E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), hdr_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom2
    )

[33] => Array
    (
        [0] => SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.term_id = 16093 LIMIT 1
        [1] => 3.69548797607E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, wp_get_nav_menu_object, get_term
    )

[34] => Array
    (
        [0] => SELECT tr.object_id FROM wp_term_relationships AS tr INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('16093') ORDER BY tr.object_id ASC
        [1] => 3.50475311279E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, wp_get_nav_menu_items, get_objects_in_term
    )

[35] => Array
    (
        [0] => SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.ID IN (39356,39357,39358,39359,39360,39361,39363,39364,39365,39366,39367,39368,39369,39370,39372,39373,39375,39376) AND wp_posts.post_type = 'nav_menu_item' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.menu_order ASC 
        [1] => 5.00679016113E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, wp_get_nav_menu_items, get_posts, WP_Query->query, WP_Query->get_posts
    )

[36] => Array
    (
        [0] => SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (39356,39364,39360,39372,39366,39358,39369,39367,39363,39368,39359,39361,39376,39365,39373,39370,39357,39375) ORDER BY meta_id ASC
        [1] => 5.41210174561E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, wp_get_nav_menu_items, get_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_postmeta_cache, update_meta_cache
    )

[37] => Array
    (
        [0] => SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('category') AND t.term_id IN ( 2,3,5,4,11,17,13086,13088,15,10,13098,9,13094,8,13095,16,16092,12 ) ORDER BY t.name ASC 
        [1] => 4.29153442383E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, wp_get_nav_menu_items, get_terms
    )

[38] => Array
    (
        [0] => SELECT t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (62492) ORDER BY t.name ASC
        [1] => 4.60147857666E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), get_header, locate_template, load_template, require_once('/themes/web14/header.php'), mnnavmnuhdr, wp_nav_menu, _wp_menu_item_classes_by_context, wp_get_object_terms
    )

[39] => Array
    (
        [0] => SELECT author_custom1 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 4.19616699219E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), abv_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom1
    )

[40] => Array
    (
        [0] => SELECT author_custom2 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.2901763916E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), abv_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom2
    )

[41] => Array
    (
        [0] => SELECT t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (62492) ORDER BY t.name ASC
        [1] => 3.81469726562E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), the_content, apply_filters('the_content'), call_user_func_array, wp_insert_legal_filter_the_content, wp_insert_get_page_details, wp_get_post_categories, wp_get_object_terms
    )

[42] => Array
    (
        [0] => SELECT author_custom1 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.79085540771E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), blw_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom1
    )

[43] => Array
    (
        [0] => SELECT author_custom2 FROM wp_author_advertising WHERE author_id='1663'
        [1] => 3.40938568115E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), blw_cnt_adss, kd_template_ad, kd_get_ad_ready, kd_get_custom2
    )

[44] => Array
    (
        [0] => SELECT t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category') AND tr.object_id IN (62492) ORDER BY t.name ASC
        [1] => 4.41074371338E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), wp_template_ad, wp_insert_get_ad_status, wp_insert_get_page_details, wp_get_post_categories, wp_get_object_terms
    )

[45] => Array
    (
        [0] => 
                SELECT term_taxonomy_id
                FROM wp_term_taxonomy
                WHERE taxonomy = 'category'
                AND term_id IN (16)

        [1] => 4.00543212891E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts, WP_Tax_Query->get_sql, WP_Tax_Query->clean_query, WP_Tax_Query->transform_query
    )

[46] => Array
    (
        [0] => SELECT   wp_posts.ID FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1  AND wp_posts.ID NOT IN (62492) AND ( wp_term_relationships.term_taxonomy_id IN (16) ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 6
        [1] => 3.88622283936E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts
    )

[47] => Array
    (
        [0] => SELECT wp_posts.* FROM wp_posts WHERE ID IN (62482,62478,62465,62462,62193)
        [1] => 4.79221343994E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts, _prime_post_caches
    )

[48] => Array
    (
        [0] => SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (62193, 62462, 62465, 62478, 62482) ORDER BY t.name ASC
        [1] => 4.88758087158E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts, _prime_post_caches, update_post_caches, update_object_term_cache, wp_get_object_terms
    )

[49] => Array
    (
        [0] => SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (62193,62462,62465,62478,62482) ORDER BY meta_id ASC
        [1] => 0.000293016433716
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts, _prime_post_caches, update_post_caches, update_postmeta_cache, update_meta_cache
    )

[50] => Array
    (
        [0] => SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (62494) ORDER BY t.name ASC
        [1] => 4.29153442383E-5
        [2] => require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/web14/single.php'), rltdpstsmre, get_template_part, locate_template, load_template, require('/themes/web14/custom/rltdpstsmre.php'), get_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms
    )

}

Read more here:: Large number of queries from a theme [on hold]

Leave a Reply

Your email address will not be published. Required fields are marked *