/* Allow Media File Size on Upload */ @ini_set( 'upload_max_size' , '180M' ); @ini_set( 'post_max_size', '180M'); @ini_set( 'max_execution_time', '400' ); /* Allow Post Thumbnails */ add_theme_support('post-thumbnails'); /* Allow SVG Uploading */ function bheku_alow_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; }; add_filter('upload_mimes', 'bheku_alow_mime_types'); /* * Image Handling * ! */ function bheku_add_image_sizes() { add_image_size( 'xs', 150, 9999 ); add_image_size( 'xl', 1280, 9999 ); add_image_size( 'xxl', 1440, 9999 ); }; add_action( 'after_setup_theme', 'bheku_add_image_sizes' ); function bheku_add_image_size_names( $sizes ) { return array_merge( $sizes, array( 'xs' => __( 'Extra Small' ), 'xl' => __( 'Extra Large' ), 'xxl' => __( 'Large Format' ), ) ); }; add_filter( 'image_size_names_choose', 'bheku_add_image_size_names' ); function bheku_add_responsive_image_sizes($sizes, $size) { $width = $size[0]; // default to return if condition is not met return '(max-width: ' . $width . 'px) 100vw, ' . $width . 'px'; }; add_filter('wp_calculate_image_sizes', 'bheku_add_responsive_image_sizes', 10 , 2); function bheku_declare_responsive_image_sizes($attr, $attachment, $size) { return $attr; }; add_filter('wp_get_attachment_image_attributes', 'bheku_declare_responsive_image_sizes', 10 , 3);
WP_Query Object
(
[query] => Array
(
[geography] => united-kingdom
)
[query_vars] => Array
(
[geography] => united-kingdom
[error] =>
[m] =>
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[name] =>
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author] =>
[author_name] =>
[feed] =>
[tb] =>
[paged] => 0
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[title] =>
[fields] => all
[menu_order] =>
[embed] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__in] => Array
(
)
[post__not_in] => Array
(
)
[post_name__in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[post_parent__in] => Array
(
)
[post_parent__not_in] => Array
(
)
[author__in] => Array
(
)
[author__not_in] => Array
(
)
[search_columns] => Array
(
)
[ignore_sticky_posts] =>
[suppress_filters] =>
[cache_results] => 1
[update_post_term_cache] => 1
[update_menu_item_cache] =>
[lazy_load_term_meta] => 1
[update_post_meta_cache] => 1
[post_type] =>
[posts_per_page] => 12
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
[taxonomy] => tax_geography
[term] => united-kingdom
[order] => DESC
)
[tax_query] => WP_Tax_Query Object
(
[queries] => Array
(
[0] => Array
(
[taxonomy] => tax_geography
[terms] => Array
(
[0] => united-kingdom
)
[field] => slug
[operator] => IN
[include_children] => 1
)
)
[relation] => AND
[table_aliases:protected] => Array
(
[0] => bheku_dahdaleh_institute_term_relationships
)
[queried_terms] => Array
(
[tax_geography] => Array
(
[terms] => Array
(
[0] => united-kingdom
)
[field] => slug
)
)
[primary_table] => bheku_dahdaleh_institute_posts
[primary_id_column] => ID
)
[meta_query] => WP_Meta_Query Object
(
[queries] => Array
(
)
[relation] =>
[meta_table] =>
[meta_id_column] =>
[primary_table] =>
[primary_id_column] =>
[table_aliases:protected] => Array
(
)
[clauses:protected] => Array
(
)
[has_or_relation:protected] =>
)
[date_query] =>
[queried_object] => WP_Term Object
(
[term_id] => 1057
[name] => United Kingdom
[slug] => united-kingdom
[term_group] => 0
[term_taxonomy_id] => 1057
[taxonomy] => tax_geography
[description] =>
[parent] => 0
[count] => 22
[filter] => raw
)
[queried_object_id] => 1057
[request] => SELECT SQL_CALC_FOUND_ROWS bheku_dahdaleh_institute_posts.ID
FROM bheku_dahdaleh_institute_posts LEFT JOIN bheku_dahdaleh_institute_term_relationships ON (bheku_dahdaleh_institute_posts.ID = bheku_dahdaleh_institute_term_relationships.object_id)
WHERE 1=1 AND (
bheku_dahdaleh_institute_term_relationships.term_taxonomy_id IN (1057)
) AND ((bheku_dahdaleh_institute_posts.post_type = 'development' AND (bheku_dahdaleh_institute_posts.post_status = 'publish' OR bheku_dahdaleh_institute_posts.post_status = 'acf-disabled')) OR (bheku_dahdaleh_institute_posts.post_type = 'organisation' AND (bheku_dahdaleh_institute_posts.post_status = 'publish' OR bheku_dahdaleh_institute_posts.post_status = 'acf-disabled')) OR (bheku_dahdaleh_institute_posts.post_type = 'people' AND (bheku_dahdaleh_institute_posts.post_status = 'publish' OR bheku_dahdaleh_institute_posts.post_status = 'acf-disabled')) OR (bheku_dahdaleh_institute_posts.post_type = 'resource' AND (bheku_dahdaleh_institute_posts.post_status = 'publish' OR bheku_dahdaleh_institute_posts.post_status = 'acf-disabled')))
GROUP BY bheku_dahdaleh_institute_posts.ID
ORDER BY bheku_dahdaleh_institute_posts.post_date DESC
LIMIT 0, 12
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 2466
[post_author] => 1
[post_date] => 2020-07-30 14:09:13
[post_date_gmt] => 2020-07-30 18:09:13
[post_content] =>
[post_title] => Nature
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => nature
[to_ping] =>
[pinged] =>
[post_modified] => 2020-07-30 14:09:13
[post_modified_gmt] => 2020-07-30 18:09:13
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://covid19.dighr.org/?post_type=organisation&p=2466
[menu_order] => 0
[post_type] => organisation
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[1] => WP_Post Object
(
[ID] => 2455
[post_author] => 1
[post_date] => 2020-07-30 11:57:23
[post_date_gmt] => 2020-07-30 15:57:23
[post_content] =>
[post_title] => London School of Hygiene & Tropical Medicine
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => london-school-of-hygiene-tropical-medicine
[to_ping] =>
[pinged] =>
[post_modified] => 2020-07-30 11:57:23
[post_modified_gmt] => 2020-07-30 15:57:23
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://covid19.dighr.org/?post_type=organisation&p=2455
[menu_order] => 0
[post_type] => organisation
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[2] => WP_Post Object
(
[ID] => 2452
[post_author] => 1
[post_date] => 2020-07-30 11:47:29
[post_date_gmt] => 2020-07-30 15:47:29
[post_content] =>
[post_title] => Lancet
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => lancet
[to_ping] =>
[pinged] =>
[post_modified] => 2020-07-30 11:47:29
[post_modified_gmt] => 2020-07-30 15:47:29
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://covid19.dighr.org/?post_type=organisation&p=2452
[menu_order] => 0
[post_type] => organisation
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[3] => WP_Post Object
(
[ID] => 2451
[post_author] => 1
[post_date] => 2020-07-30 11:43:58
[post_date_gmt] => 2020-07-30 15:43:58
[post_content] =>
[post_title] => Nature Medicine
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => nature-medicine
[to_ping] =>
[pinged] =>
[post_modified] => 2020-07-30 11:43:58
[post_modified_gmt] => 2020-07-30 15:43:58
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://covid19.dighr.org/?post_type=organisation&p=2451
[menu_order] => 0
[post_type] => organisation
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[4] => WP_Post Object
(
[ID] => 2385
[post_author] => 1
[post_date] => 2020-07-21 11:25:55
[post_date_gmt] => 2020-07-21 15:25:55
[post_content] => [post_title] => International Coordination is Essential to Avoid Resurgence [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => international-coordination-is-essential-to-avoid-resurgence [to_ping] => [pinged] => [post_modified] => 2020-11-03 09:33:17 [post_modified_gmt] => 2020-11-03 14:33:17 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/developments/international-coordination-is-essential-to-avoid-resurgence/ [menu_order] => 0 [post_type] => development [post_mime_type] => [comment_count] => 0 [filter] => raw ) [6] => WP_Post Object ( [ID] => 2181 [post_author] => 1 [post_date] => 2020-07-16 14:54:07 [post_date_gmt] => 2020-07-16 18:54:07 [post_content] => [post_title] => Diamond Princess Cruise Ship: COVID-19 Outbreak Simulation [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => diamond-princess-cruise-ship-covid-19-outbreak-simulation [to_ping] => [pinged] => [post_modified] => 2020-07-16 14:54:07 [post_modified_gmt] => 2020-07-16 18:54:07 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=resource&p=2181 [menu_order] => 0 [post_type] => resource [post_mime_type] => [comment_count] => 0 [filter] => raw ) [7] => WP_Post Object ( [ID] => 2129 [post_author] => 1 [post_date] => 2020-07-16 13:17:56 [post_date_gmt] => 2020-07-16 17:17:56 [post_content] => [post_title] => Queen Mary University of London [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => queen-mary-university-of-london [to_ping] => [pinged] => [post_modified] => 2020-07-16 13:17:56 [post_modified_gmt] => 2020-07-16 17:17:56 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=organisation&p=2129 [menu_order] => 0 [post_type] => organisation [post_mime_type] => [comment_count] => 0 [filter] => raw ) [8] => WP_Post Object ( [ID] => 2122 [post_author] => 1 [post_date] => 2020-07-16 13:15:43 [post_date_gmt] => 2020-07-16 17:15:43 [post_content] => [post_title] => The BMJ [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => the-bmj [to_ping] => [pinged] => [post_modified] => 2020-07-16 13:15:43 [post_modified_gmt] => 2020-07-16 17:15:43 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=organisation&p=2122 [menu_order] => 0 [post_type] => organisation [post_mime_type] => [comment_count] => 0 [filter] => raw ) [9] => WP_Post Object ( [ID] => 2095 [post_author] => 1 [post_date] => 2020-07-16 12:20:11 [post_date_gmt] => 2020-07-16 16:20:11 [post_content] => [post_title] => Cochrane Library [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => cochrane-library [to_ping] => [pinged] => [post_modified] => 2020-07-16 12:20:11 [post_modified_gmt] => 2020-07-16 16:20:11 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=organisation&p=2095 [menu_order] => 0 [post_type] => organisation [post_mime_type] => [comment_count] => 0 [filter] => raw ) [10] => WP_Post Object ( [ID] => 2092 [post_author] => 1 [post_date] => 2020-07-16 12:04:57 [post_date_gmt] => 2020-07-16 16:04:57 [post_content] => Daily updates by the Centre for Evidence-Based Medicine of CFR estimates, country-specific issues affecting CFR, and current best estimate of Infection Fatality Rate (IFR). [post_title] => COVID-19 Case Fatality Rates [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => covid-19-case-fatality-rates [to_ping] => [pinged] => [post_modified] => 2020-07-16 12:04:57 [post_modified_gmt] => 2020-07-16 16:04:57 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=resource&p=2092 [menu_order] => 0 [post_type] => resource [post_mime_type] => [comment_count] => 0 [filter] => raw ) [11] => WP_Post Object ( [ID] => 2090 [post_author] => 1 [post_date] => 2020-07-16 11:56:48 [post_date_gmt] => 2020-07-16 15:56:48 [post_content] => [post_title] => University of Oxford [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => university-of-oxford [to_ping] => [pinged] => [post_modified] => 2020-07-16 11:56:48 [post_modified_gmt] => 2020-07-16 15:56:48 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=organisation&p=2090 [menu_order] => 0 [post_type] => organisation [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 12 [current_post] => -1 [before_loop] => [in_the_loop] => [post] => WP_Post Object ( [ID] => 2466 [post_author] => 1 [post_date] => 2020-07-30 14:09:13 [post_date_gmt] => 2020-07-30 18:09:13 [post_content] => [post_title] => Nature [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => nature [to_ping] => [pinged] => [post_modified] => 2020-07-30 14:09:13 [post_modified_gmt] => 2020-07-30 18:09:13 [post_content_filtered] => [post_parent] => 0 [guid] => https://covid19.dighr.org/?post_type=organisation&p=2466 [menu_order] => 0 [post_type] => organisation [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 22 [max_num_pages] => 2 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => [query_vars_hash:WP_Query:private] => fd1883927980f269c2f4552a9f179a86 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:4260324806c0e7e94cb37dbbfa1eb236 )