Browse by category

WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => architecture-design ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => architecture-design ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => architecture-design ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => architecture-design ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => architecture-design ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (947) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23693 [post_author] => 1 [post_date] => 2017-09-14 14:04:05 [post_date_gmt] => 2017-09-14 13:04:05 [post_content] => [post_title] => Welsh Oak Frame [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => welsh-oak-frame [to_ping] => [pinged] => [post_modified] => 2021-10-25 16:51:35 [post_modified_gmt] => 2021-10-25 15:51:35 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23693 [menu_order] => 105 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23693 [post_author] => 1 [post_date] => 2017-09-14 14:04:05 [post_date_gmt] => 2017-09-14 13:04:05 [post_content] => [post_title] => Welsh Oak Frame [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => welsh-oak-frame [to_ping] => [pinged] => [post_modified] => 2021-10-25 16:51:35 [post_modified_gmt] => 2021-10-25 15:51:35 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23693 [menu_order] => 105 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 24 [max_num_pages] => 24 [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] => 1 [query_vars_hash:WP_Query:private] => dd69f1601e9999ebb15f5bcd9ada40bc [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => building-materials ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => building-materials ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => building-materials ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => building-materials ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => building-materials ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (948) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23674 [post_author] => 1 [post_date] => 2017-09-14 12:56:28 [post_date_gmt] => 2017-09-14 11:56:28 [post_content] => [post_title] => Tudor Roof Tiles [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => tudor-roof-tiles [to_ping] => [pinged] => [post_modified] => 2021-03-18 15:07:30 [post_modified_gmt] => 2021-03-18 15:07:30 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23674 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23674 [post_author] => 1 [post_date] => 2017-09-14 12:56:28 [post_date_gmt] => 2017-09-14 11:56:28 [post_content] => [post_title] => Tudor Roof Tiles [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => tudor-roof-tiles [to_ping] => [pinged] => [post_modified] => 2021-03-18 15:07:30 [post_modified_gmt] => 2021-03-18 15:07:30 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23674 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 22 [max_num_pages] => 22 [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] => 1 [query_vars_hash:WP_Query:private] => 4aee05b7470a8173008d91bd0d5183f7 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) )
WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => custom-build ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => custom-build ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => custom-build ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => custom-build ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => custom-build ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (949) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 39868 [post_author] => 7736 [post_date] => 2018-03-29 16:16:30 [post_date_gmt] => 2018-03-29 15:16:30 [post_content] => [post_title] => Graven Hill [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => graven-hill [to_ping] => [pinged] => [post_modified] => 2021-07-05 16:45:15 [post_modified_gmt] => 2021-07-05 15:45:15 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=39868 [menu_order] => 9 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 39868 [post_author] => 7736 [post_date] => 2018-03-29 16:16:30 [post_date_gmt] => 2018-03-29 15:16:30 [post_content] => [post_title] => Graven Hill [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => graven-hill [to_ping] => [pinged] => [post_modified] => 2021-07-05 16:45:15 [post_modified_gmt] => 2021-07-05 15:45:15 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=39868 [menu_order] => 9 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 3 [max_num_pages] => 3 [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] => 1 [query_vars_hash:WP_Query:private] => fd6750cd8b8f18f3449c9f958767b919 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => doors ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => doors ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => doors ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => doors ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => doors ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (951) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2021-12-10 17:34:11 [post_modified_gmt] => 2021-12-10 17:34:11 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2021-12-10 17:34:11 [post_modified_gmt] => 2021-12-10 17:34:11 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 16 [max_num_pages] => 16 [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] => 1 [query_vars_hash:WP_Query:private] => 7fd9a58876d22e3cc09b663f73719050 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => finance-professional-services ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => finance-professional-services ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => finance-professional-services ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => finance-professional-services ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => finance-professional-services ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (953) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 16032 [post_author] => 1 [post_date] => 2017-08-24 10:53:08 [post_date_gmt] => 2017-08-24 09:53:08 [post_content] => [post_title] => Protek [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => protek [to_ping] => [pinged] => [post_modified] => 2022-01-20 12:24:50 [post_modified_gmt] => 2022-01-20 12:24:50 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16032 [menu_order] => 90 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 16032 [post_author] => 1 [post_date] => 2017-08-24 10:53:08 [post_date_gmt] => 2017-08-24 09:53:08 [post_content] => [post_title] => Protek [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => protek [to_ping] => [pinged] => [post_modified] => 2022-01-20 12:24:50 [post_modified_gmt] => 2022-01-20 12:24:50 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16032 [menu_order] => 90 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 10 [max_num_pages] => 10 [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] => 1 [query_vars_hash:WP_Query:private] => 926bcdc7b6102ea70eeff77a79f71f67 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => gardens-outbuildings ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => gardens-outbuildings ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => gardens-outbuildings ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => gardens-outbuildings ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => gardens-outbuildings ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (1559) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 16022 [post_author] => 1 [post_date] => 2017-08-24 10:47:23 [post_date_gmt] => 2017-08-24 09:47:23 [post_content] => [post_title] => Russwood [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => russwood [to_ping] => [pinged] => [post_modified] => 2021-02-02 12:01:54 [post_modified_gmt] => 2021-02-02 12:01:54 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16022 [menu_order] => 94 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 16022 [post_author] => 1 [post_date] => 2017-08-24 10:47:23 [post_date_gmt] => 2017-08-24 09:47:23 [post_content] => [post_title] => Russwood [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => russwood [to_ping] => [pinged] => [post_modified] => 2021-02-02 12:01:54 [post_modified_gmt] => 2021-02-02 12:01:54 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16022 [menu_order] => 94 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 8 [max_num_pages] => 8 [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] => 1 [query_vars_hash:WP_Query:private] => fd72339931e9ff15c5abac2507564591 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => heating-ventilation ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => heating-ventilation ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => heating-ventilation ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => heating-ventilation ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => heating-ventilation ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (954) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23671 [post_author] => 1 [post_date] => 2017-09-14 12:53:30 [post_date_gmt] => 2017-09-14 11:53:30 [post_content] => [post_title] => NIBE Energy Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => nibe-energy-systems [to_ping] => [pinged] => [post_modified] => 2021-10-05 16:44:26 [post_modified_gmt] => 2021-10-05 15:44:26 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23671 [menu_order] => 83 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23671 [post_author] => 1 [post_date] => 2017-09-14 12:53:30 [post_date_gmt] => 2017-09-14 11:53:30 [post_content] => [post_title] => NIBE Energy Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => nibe-energy-systems [to_ping] => [pinged] => [post_modified] => 2021-10-05 16:44:26 [post_modified_gmt] => 2021-10-05 15:44:26 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23671 [menu_order] => 83 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 20 [max_num_pages] => 20 [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] => 1 [query_vars_hash:WP_Query:private] => e7f09839d06232bff36ee1b3167deab9 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => home-technology ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => home-technology ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => home-technology ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => home-technology ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => home-technology ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (955) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23663 [post_author] => 1 [post_date] => 2017-09-14 12:44:48 [post_date_gmt] => 2017-09-14 11:44:48 [post_content] => [post_title] => New Wave [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => new-wave [to_ping] => [pinged] => [post_modified] => 2021-08-05 09:55:59 [post_modified_gmt] => 2021-08-05 08:55:59 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23663 [menu_order] => 82 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23663 [post_author] => 1 [post_date] => 2017-09-14 12:44:48 [post_date_gmt] => 2017-09-14 11:44:48 [post_content] => [post_title] => New Wave [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => new-wave [to_ping] => [pinged] => [post_modified] => 2021-08-05 09:55:59 [post_modified_gmt] => 2021-08-05 08:55:59 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23663 [menu_order] => 82 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 8 [max_num_pages] => 8 [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] => 1 [query_vars_hash:WP_Query:private] => 06bf419c0eb6c87a4c04ac4a31f4d4b9 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => interiors-finishes ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => interiors-finishes ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => interiors-finishes ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => interiors-finishes ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => interiors-finishes ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (956) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23668 [post_author] => 1 [post_date] => 2017-09-14 12:50:34 [post_date_gmt] => 2017-09-14 11:50:34 [post_content] => [post_title] => Wetrooms Online [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => wetrooms-online [to_ping] => [pinged] => [post_modified] => 2021-09-24 12:50:09 [post_modified_gmt] => 2021-09-24 11:50:09 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23668 [menu_order] => 106 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23668 [post_author] => 1 [post_date] => 2017-09-14 12:50:34 [post_date_gmt] => 2017-09-14 11:50:34 [post_content] => [post_title] => Wetrooms Online [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => wetrooms-online [to_ping] => [pinged] => [post_modified] => 2021-09-24 12:50:09 [post_modified_gmt] => 2021-09-24 11:50:09 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23668 [menu_order] => 106 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 12 [max_num_pages] => 12 [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] => 1 [query_vars_hash:WP_Query:private] => 19410352f1f105ab447aef457b3e35cf [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => lofts-basements ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => lofts-basements ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => lofts-basements ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => lofts-basements ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => lofts-basements ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (957) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 34503 [post_author] => 1 [post_date] => 2018-01-31 17:42:24 [post_date_gmt] => 2018-01-31 17:42:24 [post_content] => [post_title] => Simply Construction Group [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => simply-construction-group [to_ping] => [pinged] => [post_modified] => 2021-03-12 09:02:19 [post_modified_gmt] => 2021-03-12 09:02:19 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=34503 [menu_order] => 48 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 34503 [post_author] => 1 [post_date] => 2018-01-31 17:42:24 [post_date_gmt] => 2018-01-31 17:42:24 [post_content] => [post_title] => Simply Construction Group [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => simply-construction-group [to_ping] => [pinged] => [post_modified] => 2021-03-12 09:02:19 [post_modified_gmt] => 2021-03-12 09:02:19 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=34503 [menu_order] => 48 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 12 [max_num_pages] => 12 [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] => 1 [query_vars_hash:WP_Query:private] => 30a0282e25b20801d886893acb9eb589 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => renewable-energy ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => renewable-energy ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => renewable-energy ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => renewable-energy ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => renewable-energy ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (958) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23671 [post_author] => 1 [post_date] => 2017-09-14 12:53:30 [post_date_gmt] => 2017-09-14 11:53:30 [post_content] => [post_title] => NIBE Energy Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => nibe-energy-systems [to_ping] => [pinged] => [post_modified] => 2021-10-05 16:44:26 [post_modified_gmt] => 2021-10-05 15:44:26 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23671 [menu_order] => 83 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23671 [post_author] => 1 [post_date] => 2017-09-14 12:53:30 [post_date_gmt] => 2017-09-14 11:53:30 [post_content] => [post_title] => NIBE Energy Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => nibe-energy-systems [to_ping] => [pinged] => [post_modified] => 2021-10-05 16:44:26 [post_modified_gmt] => 2021-10-05 15:44:26 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23671 [menu_order] => 83 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 6 [max_num_pages] => 6 [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] => 1 [query_vars_hash:WP_Query:private] => 0a5a2f1cc1812eb8f9c24ce503b75ff3 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => roofing-rainwater-goods ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => roofing-rainwater-goods ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => roofing-rainwater-goods ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => roofing-rainwater-goods ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => roofing-rainwater-goods ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (960) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23674 [post_author] => 1 [post_date] => 2017-09-14 12:56:28 [post_date_gmt] => 2017-09-14 11:56:28 [post_content] => [post_title] => Tudor Roof Tiles [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => tudor-roof-tiles [to_ping] => [pinged] => [post_modified] => 2021-03-18 15:07:30 [post_modified_gmt] => 2021-03-18 15:07:30 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23674 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23674 [post_author] => 1 [post_date] => 2017-09-14 12:56:28 [post_date_gmt] => 2017-09-14 11:56:28 [post_content] => [post_title] => Tudor Roof Tiles [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => tudor-roof-tiles [to_ping] => [pinged] => [post_modified] => 2021-03-18 15:07:30 [post_modified_gmt] => 2021-03-18 15:07:30 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23674 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 13 [max_num_pages] => 13 [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] => 1 [query_vars_hash:WP_Query:private] => 7efe40b1b4164368f4e5ce800f512754 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => staircases-joinery ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => staircases-joinery ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => staircases-joinery ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => staircases-joinery ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => staircases-joinery ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (963) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23678 [post_author] => 1 [post_date] => 2017-09-14 12:59:47 [post_date_gmt] => 2017-09-14 11:59:47 [post_content] => [post_title] => Complete Stair Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => complete-stair-systems [to_ping] => [pinged] => [post_modified] => 2021-01-21 10:15:53 [post_modified_gmt] => 2021-01-21 10:15:53 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23678 [menu_order] => 50 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23678 [post_author] => 1 [post_date] => 2017-09-14 12:59:47 [post_date_gmt] => 2017-09-14 11:59:47 [post_content] => [post_title] => Complete Stair Systems [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => complete-stair-systems [to_ping] => [pinged] => [post_modified] => 2021-01-21 10:15:53 [post_modified_gmt] => 2021-01-21 10:15:53 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23678 [menu_order] => 50 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 4 [max_num_pages] => 4 [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] => 1 [query_vars_hash:WP_Query:private] => a9da8afef6d616cce0122fe04edb60c1 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => structural-systems ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => structural-systems ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => structural-systems ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => structural-systems ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => structural-systems ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (964) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23693 [post_author] => 1 [post_date] => 2017-09-14 14:04:05 [post_date_gmt] => 2017-09-14 13:04:05 [post_content] => [post_title] => Welsh Oak Frame [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => welsh-oak-frame [to_ping] => [pinged] => [post_modified] => 2021-10-25 16:51:35 [post_modified_gmt] => 2021-10-25 15:51:35 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23693 [menu_order] => 105 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23693 [post_author] => 1 [post_date] => 2017-09-14 14:04:05 [post_date_gmt] => 2017-09-14 13:04:05 [post_content] => [post_title] => Welsh Oak Frame [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => welsh-oak-frame [to_ping] => [pinged] => [post_modified] => 2021-10-25 16:51:35 [post_modified_gmt] => 2021-10-25 15:51:35 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23693 [menu_order] => 105 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 34 [max_num_pages] => 34 [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] => 1 [query_vars_hash:WP_Query:private] => 0915078b39e167dc87be403aa3c17180 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) ) WP_Query Object ( [query] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => windows-glazing ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) ) [query_vars] => Array ( [post_type] => company [posts_per_page] => 1 [order] => DESC [orderby] => menu_order [tax_query] => Array ( [0] => Array ( [taxonomy] => directorycategory [field] => slug [terms] => windows-glazing ) ) [meta_query] => Array ( [relation] => AND [0] => Array ( [relation] => OR [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [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] => [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 ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => windows-glazing ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => windows-glazing ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => wp_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => windows-glazing ) [field] => slug ) ) [primary_table] => wp_posts [primary_id_column] => ID ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [0] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => ) [relation] => OR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date ) [1] => Array ( [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) [relation] => OR ) [relation] => AND ) [relation] => AND [meta_table] => wp_postmeta [meta_id_column] => post_id [primary_table] => wp_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_postmeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 ) [clauses:protected] => Array ( [page_type] => Array ( [key] => page_type [value] => Array ( [0] => product [1] => project ) [compare] => NOT IN [compare_key] => = [alias] => wp_postmeta [cast] => CHAR ) [page_type_no] => Array ( [key] => page_type [compare] => NOT EXISTS [value] => [compare_key] => = [alias] => mt1 [cast] => CHAR ) [end_date] => Array ( [key] => end_date [value] => 20220125 [compare] => > [type] => date [compare_key] => = [alias] => mt2 [cast] => DATE ) [views] => Array ( [key] => views_weekly [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => views_weekly [compare] => NOT EXISTS [compare_key] => = [alias] => mt4 [cast] => CHAR ) ) [has_or_relation:protected] => 1 ) [date_query] => [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_postmeta AS mt3 ON ( wp_posts.ID = mt3.post_id ) LEFT JOIN wp_postmeta AS mt4 ON ( wp_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (965) ) AND ( ( ( wp_postmeta.meta_key = 'page_type' AND wp_postmeta.meta_value NOT IN ('product','project') ) OR mt1.post_id IS NULL ) AND ( mt2.meta_key = 'end_date' AND CAST(mt2.meta_value AS DATE) > '20220125' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND wp_posts.post_type = 'company' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled') GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2021-12-10 17:34:11 [post_modified_gmt] => 2021-12-10 17:34:11 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2021-12-10 17:34:11 [post_modified_gmt] => 2021-12-10 17:34:11 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 22 [max_num_pages] => 22 [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] => 1 [query_vars_hash:WP_Query:private] => fa7bb259448fce97ea0ab4313086ab6a [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [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 ) )

Search directory

Find the products and services you need by searching below.

Our sponsors