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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => architecture-design ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (947) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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 [before_loop] => 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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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] => 17 [max_num_pages] => 17 [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] => 314c241f8d2daa395256f1352d16db2c [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:4bcd1a3977f5c539294cf73d740895bc:0.49123400 17469687440.33213100 1746968784 ) 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] => award-winners ) ) [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] => 20250511 [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] => award-winners ) ) [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => directorycategory [term] => award-winners ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => directorycategory [terms] => Array ( [0] => award-winners ) [field] => slug [operator] => IN [include_children] => 1 ) ) [relation] => AND [table_aliases:protected] => Array ( [0] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => award-winners ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (1785) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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 [before_loop] => 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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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] => 15 [max_num_pages] => 15 [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] => 72c9e6f21f62c69649bd32e8639ac132 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:b2cd8ccafb2a722a28a3a230931b31fa:0.49123400 17469687440.33213100 1746968784 )
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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => building-materials ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (948) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-04-07 15:24:46 [post_modified_gmt] => 2025-04-07 14:24:46 [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 [before_loop] => 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] => 2025-04-07 15:24:46 [post_modified_gmt] => 2025-04-07 14:24:46 [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] => 23 [max_num_pages] => 23 [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] => 35090a4df70768a92e131fae6869b369 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:70ce84f44bd26d0229bbbce1f5a94735:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => custom-build ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (949) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 46185 [post_author] => 1 [post_date] => 2018-07-12 14:00:33 [post_date_gmt] => 2018-07-12 13:00:33 [post_content] => [post_title] => Dan-Wood House [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => dan-wood [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:05:03 [post_modified_gmt] => 2025-02-05 12:05:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=46185 [menu_order] => 0 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 46185 [post_author] => 1 [post_date] => 2018-07-12 14:00:33 [post_date_gmt] => 2018-07-12 13:00:33 [post_content] => [post_title] => Dan-Wood House [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => dan-wood [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:05:03 [post_modified_gmt] => 2025-02-05 12:05:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=46185 [menu_order] => 0 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 2 [max_num_pages] => 2 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => 78175ddc07f6fe59ac4a639f61e00233 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:7666ed799ad62a57ee64fe476bbb9a5c:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => doors ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (951) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 16030 [post_author] => 1 [post_date] => 2017-08-24 10:52:10 [post_date_gmt] => 2017-08-24 09:52:10 [post_content] => [post_title] => Urban Front [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => urban-front [to_ping] => [pinged] => [post_modified] => 2024-10-16 11:45:03 [post_modified_gmt] => 2024-10-16 10:45:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16030 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 16030 [post_author] => 1 [post_date] => 2017-08-24 10:52:10 [post_date_gmt] => 2017-08-24 09:52:10 [post_content] => [post_title] => Urban Front [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => urban-front [to_ping] => [pinged] => [post_modified] => 2024-10-16 11:45:03 [post_modified_gmt] => 2024-10-16 10:45:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16030 [menu_order] => 100 [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] => 572be9af90c3199e3d362e270f4b2a63 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:8896302aff3b84f610d319eef6d8145a:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => finance-professional-services ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (953) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-01-30 15:48:47 [post_modified_gmt] => 2025-01-30 15:48:47 [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 [before_loop] => 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] => 2025-01-30 15:48:47 [post_modified_gmt] => 2025-01-30 15:48:47 [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] => 7 [max_num_pages] => 7 [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] => 38e7ea1e3081ab4697306047fb1fd07f [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:d7d6dc7bbda2300cf84f69507132102c:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => gardens-outbuildings ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (1559) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-05-06 12:13:38 [post_modified_gmt] => 2025-05-06 11:13:38 [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 [before_loop] => 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] => 2025-05-06 12:13:38 [post_modified_gmt] => 2025-05-06 11:13:38 [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] => 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] => 57f6265def2adc7d8c3679df91dd3677 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:cf6bc1432060929e32dd1af174668bbe:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => heating-ventilation ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (954) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-02-05 12:40:51 [post_modified_gmt] => 2025-02-05 12:40:51 [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 [before_loop] => 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] => 2025-02-05 12:40:51 [post_modified_gmt] => 2025-02-05 12:40:51 [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] => 17 [max_num_pages] => 17 [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] => e421fe3a84ba4e0b6a66d9dceac59853 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:c751222bb13ce0fe0e10d614bbf8c003:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => home-technology ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (955) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23661 [post_author] => 1 [post_date] => 2017-09-14 12:42:30 [post_date_gmt] => 2017-09-14 11:42:30 [post_content] => [post_title] => Moss Technical [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => moss-technical [to_ping] => [pinged] => [post_modified] => 2024-10-30 12:21:00 [post_modified_gmt] => 2024-10-30 12:21:00 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23661 [menu_order] => 80 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23661 [post_author] => 1 [post_date] => 2017-09-14 12:42:30 [post_date_gmt] => 2017-09-14 11:42:30 [post_content] => [post_title] => Moss Technical [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => moss-technical [to_ping] => [pinged] => [post_modified] => 2024-10-30 12:21:00 [post_modified_gmt] => 2024-10-30 12:21:00 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23661 [menu_order] => 80 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 5 [max_num_pages] => 5 [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] => b0b62048a0c591db0a6d047330199584 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:99933d5ffa010b4d46e4b279a8f8e5f2:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => interiors-finishes ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (956) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 33431 [post_author] => 1 [post_date] => 2018-01-15 12:39:45 [post_date_gmt] => 2018-01-15 12:39:45 [post_content] => [post_title] => Zakuna [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => zakuna [to_ping] => [pinged] => [post_modified] => 2024-06-28 18:35:55 [post_modified_gmt] => 2024-06-28 17:35:55 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=33431 [menu_order] => 35 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 33431 [post_author] => 1 [post_date] => 2018-01-15 12:39:45 [post_date_gmt] => 2018-01-15 12:39:45 [post_content] => [post_title] => Zakuna [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => zakuna [to_ping] => [pinged] => [post_modified] => 2024-06-28 18:35:55 [post_modified_gmt] => 2024-06-28 17:35:55 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=33431 [menu_order] => 35 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 7 [max_num_pages] => 7 [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] => d4e7f9876e3822812e444507123f5733 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:847768722c79c76564a3c986be5b53fe:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => lofts-basements ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (957) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 28061 [post_author] => 2121 [post_date] => 2017-11-06 12:13:14 [post_date_gmt] => 2017-11-06 12:13:14 [post_content] => [post_title] => TeleBeam [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => telebeam [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:06:40 [post_modified_gmt] => 2025-02-05 12:06:40 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=28061 [menu_order] => 35 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 28061 [post_author] => 2121 [post_date] => 2017-11-06 12:13:14 [post_date_gmt] => 2017-11-06 12:13:14 [post_content] => [post_title] => TeleBeam [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => telebeam [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:06:40 [post_modified_gmt] => 2025-02-05 12:06:40 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=28061 [menu_order] => 35 [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] => e0cce434ff826057209a3185015c632a [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:ca04435535aca88b2177919420f779cd:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => renewable-energy ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (958) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-02-05 12:40:51 [post_modified_gmt] => 2025-02-05 12:40:51 [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 [before_loop] => 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] => 2025-02-05 12:40:51 [post_modified_gmt] => 2025-02-05 12:40:51 [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] => 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] => b7692b60d4ce8d70224e79f8eeec5eae [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:548a46be1c695268ad292aa45def54a0:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => roofing-rainwater-goods ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (960) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-04-07 15:24:46 [post_modified_gmt] => 2025-04-07 14:24:46 [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 [before_loop] => 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] => 2025-04-07 15:24:46 [post_modified_gmt] => 2025-04-07 14:24:46 [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] => 11 [max_num_pages] => 11 [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] => e55030bff7f4e4396cc26e8142855098 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:e6aab95c6189b4b5b607c998e6b09f2c:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => staircases-joinery ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (963) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 33431 [post_author] => 1 [post_date] => 2018-01-15 12:39:45 [post_date_gmt] => 2018-01-15 12:39:45 [post_content] => [post_title] => Zakuna [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => zakuna [to_ping] => [pinged] => [post_modified] => 2024-06-28 18:35:55 [post_modified_gmt] => 2024-06-28 17:35:55 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=33431 [menu_order] => 35 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 33431 [post_author] => 1 [post_date] => 2018-01-15 12:39:45 [post_date_gmt] => 2018-01-15 12:39:45 [post_content] => [post_title] => Zakuna [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => zakuna [to_ping] => [pinged] => [post_modified] => 2024-06-28 18:35:55 [post_modified_gmt] => 2024-06-28 17:35:55 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=33431 [menu_order] => 35 [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] => 78cb27a7d6eacb000a91e3846b5080dc [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:55cc8458b61d7a7ce4fc62104ab67633:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => structural-systems ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (964) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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 [before_loop] => 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] => 2025-02-05 12:37:55 [post_modified_gmt] => 2025-02-05 12:37:55 [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] => 32 [max_num_pages] => 32 [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] => 0bb4a7fecfb8cd200cde78de206f77e8 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:144d44abc5041059d84a0b842bd86c4e:0.49123400 17469687440.33213100 1746968784 ) 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] => 20250511 [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] => 20250511 [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] => all [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [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] => lxckk_term_relationships ) [queried_terms] => Array ( [directorycategory] => Array ( [terms] => Array ( [0] => windows-glazing ) [field] => slug ) ) [primary_table] => lxckk_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] => 20250511 [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] => lxckk_postmeta [meta_id_column] => post_id [primary_table] => lxckk_posts [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => lxckk_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] => lxckk_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] => 20250511 [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 lxckk_posts.ID FROM lxckk_posts LEFT JOIN lxckk_term_relationships ON (lxckk_posts.ID = lxckk_term_relationships.object_id) LEFT JOIN lxckk_postmeta ON ( lxckk_posts.ID = lxckk_postmeta.post_id ) LEFT JOIN lxckk_postmeta AS mt1 ON ( lxckk_posts.ID = mt1.post_id AND mt1.meta_key = 'page_type' ) LEFT JOIN lxckk_postmeta AS mt2 ON ( lxckk_posts.ID = mt2.post_id ) LEFT JOIN lxckk_postmeta AS mt3 ON ( lxckk_posts.ID = mt3.post_id ) LEFT JOIN lxckk_postmeta AS mt4 ON ( lxckk_posts.ID = mt4.post_id AND mt4.meta_key = 'views_weekly' ) WHERE 1=1 AND ( lxckk_term_relationships.term_taxonomy_id IN (965) ) AND ( ( ( lxckk_postmeta.meta_key = 'page_type' AND lxckk_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) > '20250511' ) AND ( mt3.meta_key = 'views_weekly' OR mt4.post_id IS NULL ) ) AND ((lxckk_posts.post_type = 'company' AND (lxckk_posts.post_status = 'publish' OR lxckk_posts.post_status = 'acf-disabled'))) GROUP BY lxckk_posts.ID ORDER BY lxckk_posts.menu_order DESC LIMIT 0, 1 [posts] => Array ( [0] => WP_Post Object ( [ID] => 23702 [post_author] => 1 [post_date] => 2017-09-14 14:11:40 [post_date_gmt] => 2017-09-14 13:11:40 [post_content] => [post_title] => Kloeber [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => kloeber [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:43:47 [post_modified_gmt] => 2025-02-05 12:43:47 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23702 [menu_order] => 74 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23702 [post_author] => 1 [post_date] => 2017-09-14 14:11:40 [post_date_gmt] => 2017-09-14 13:11:40 [post_content] => [post_title] => Kloeber [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => kloeber [to_ping] => [pinged] => [post_modified] => 2025-02-05 12:43:47 [post_modified_gmt] => 2025-02-05 12:43:47 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23702 [menu_order] => 74 [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] => 5ad6ffa19c7c442f9e25f34ff54e9805 [query_vars_changed:WP_Query:private] => [thumbnails_cached] => [allow_query_attachment_by_filename:protected] => [stopwords:WP_Query:private] => [compat_fields:WP_Query:private] => Array ( [0] => query_vars_hash [1] => query_vars_changed ) [compat_methods:WP_Query:private] => Array ( [0] => init_query_flags [1] => parse_tax_query ) [query_cache_key:WP_Query:private] => wp_query:3e8ca9589f2614c6bcd7428e3695c6c5:0.49123400 17469687440.33213100 1746968784 )

Search directory

Find the products and services you need by searching below.

Our sponsors