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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:03:45 [post_modified_gmt] => 2024-01-31 16:03:45 [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] => 2024-01-31 16:03:45 [post_modified_gmt] => 2024-01-31 16:03:45 [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] => 19 [max_num_pages] => 19 [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] => 23943a6b2fddba3204d1b8b7c1530574 [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:11:50 [post_modified_gmt] => 2024-01-31 16:11:50 [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] => 2024-01-31 16:11:50 [post_modified_gmt] => 2024-01-31 16:11:50 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23674 [menu_order] => 100 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 22 [max_num_pages] => 22 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => f753d40b277b52e74da89e33cf22dc01 [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 ) )
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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:32:28 [post_modified_gmt] => 2024-01-31 16:32:28 [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] => 2024-01-31 16:32:28 [post_modified_gmt] => 2024-01-31 16:32:28 [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] => 3 [max_num_pages] => 3 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => 5490bda99cfa8ed73fbc7d5dd1244d7e [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:39:03 [post_modified_gmt] => 2024-01-31 16:39:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:39:03 [post_modified_gmt] => 2024-01-31 16:39:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 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] => 729854a3f38a855cdd4fb7340822afff [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:43:27 [post_modified_gmt] => 2024-01-31 16:43:27 [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] => 2024-01-31 16:43:27 [post_modified_gmt] => 2024-01-31 16:43:27 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=16032 [menu_order] => 90 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 10 [max_num_pages] => 10 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => 315aa2de3dd9d9da181cd71a2a6bbd72 [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:12:22 [post_modified_gmt] => 2024-01-31 16:12:22 [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] => 2024-01-31 16:12:22 [post_modified_gmt] => 2024-01-31 16:12:22 [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] => 5d048443e41a56564200ca60163d9fbc [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:50:10 [post_modified_gmt] => 2024-01-31 16:50:10 [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] => 2024-01-31 16:50:10 [post_modified_gmt] => 2024-01-31 16:50:10 [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] => 18 [max_num_pages] => 18 [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] => 7a87e26c3595786eb86e241f2c3a5d27 [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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-01-31 16:51:05 [post_modified_gmt] => 2024-01-31 16:51:05 [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-01-31 16:51:05 [post_modified_gmt] => 2024-01-31 16:51:05 [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] => 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] => 4d4cfe2c01d20a7910619fc2289b1b5c [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 23668 [post_author] => 1 [post_date] => 2017-09-14 12:50:34 [post_date_gmt] => 2017-09-14 11:50:34 [post_content] => [post_title] => Wetrooms Online [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => wetrooms-online [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:53:39 [post_modified_gmt] => 2024-01-31 16:53:39 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23668 [menu_order] => 106 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23668 [post_author] => 1 [post_date] => 2017-09-14 12:50:34 [post_date_gmt] => 2017-09-14 11:50:34 [post_content] => [post_title] => Wetrooms Online [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => wetrooms-online [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:53:39 [post_modified_gmt] => 2024-01-31 16:53:39 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23668 [menu_order] => 106 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 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] => fdafa205bba6aa3acc34caa183711d96 [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:11:41 [post_modified_gmt] => 2024-01-31 16:11:41 [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] => 2024-01-31 16:11:41 [post_modified_gmt] => 2024-01-31 16:11:41 [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] => 9 [max_num_pages] => 9 [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] => 6117cd16d4d455d84c843396e8fe428e [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:50:10 [post_modified_gmt] => 2024-01-31 16:50:10 [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] => 2024-01-31 16:50:10 [post_modified_gmt] => 2024-01-31 16:50:10 [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] => 9654dc9d0fecb25d85bb5b9e640a80dc [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:11:50 [post_modified_gmt] => 2024-01-31 16:11:50 [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] => 2024-01-31 16:11:50 [post_modified_gmt] => 2024-01-31 16:11:50 [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] => 12 [max_num_pages] => 12 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => 6fa17cec9b3d86238d262ce9217ab3cf [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 23677 [post_author] => 1 [post_date] => 2017-09-14 12:58:58 [post_date_gmt] => 2017-09-14 11:58:58 [post_content] => [post_title] => Bisca [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => bisca [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:53:22 [post_modified_gmt] => 2024-01-31 16:53:22 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23677 [menu_order] => 43 [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] => 23677 [post_author] => 1 [post_date] => 2017-09-14 12:58:58 [post_date_gmt] => 2017-09-14 11:58:58 [post_content] => [post_title] => Bisca [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => bisca [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:53:22 [post_modified_gmt] => 2024-01-31 16:53:22 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23677 [menu_order] => 43 [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] => d5e6c45ac1d3a42b48eb2910f98ea5e7 [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 2024-01-31 16:03:45 [post_modified_gmt] => 2024-01-31 16:03:45 [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] => 2024-01-31 16:03:45 [post_modified_gmt] => 2024-01-31 16:03:45 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23693 [menu_order] => 105 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 34 [max_num_pages] => 34 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => 1 [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => 1 [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_privacy_policy] => [is_404] => [is_embed] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_favicon] => [is_posts_page] => [is_post_type_archive] => 1 [query_vars_hash:WP_Query:private] => 1c85b1fb714273dfcc6cf9557c94b37d [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 ) ) 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] => 20240221 [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] => 20240221 [compare] => > [type] => date ) [1] => Array ( [relation] => OR [views] => Array ( [key] => views_weekly [compare] => EXISTS ) [0] => Array ( [key] => views_weekly [compare] => NOT EXISTS ) ) ) [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [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] => 20240221 [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] => 20240221 [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) > '20240221' ) 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] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:39:03 [post_modified_gmt] => 2024-01-31 16:39:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) ) [post_count] => 1 [current_post] => -1 [before_loop] => 1 [in_the_loop] => [post] => WP_Post Object ( [ID] => 23704 [post_author] => 1 [post_date] => 2017-09-14 14:13:36 [post_date_gmt] => 2017-09-14 13:13:36 [post_content] => [post_title] => VELFAC [post_excerpt] => [post_status] => publish [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => velfac [to_ping] => [pinged] => [post_modified] => 2024-01-31 16:39:03 [post_modified_gmt] => 2024-01-31 16:39:03 [post_content_filtered] => [post_parent] => 0 [guid] => http://www.self-build.co.uk/?post_type=company&p=23704 [menu_order] => 102 [post_type] => company [post_mime_type] => [comment_count] => 0 [filter] => raw ) [comment_count] => 0 [current_comment] => -1 [found_posts] => 19 [max_num_pages] => 19 [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] => b5d36f8663555f5c891f3713019dd52b [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 ) )

Search directory

Find the products and services you need by searching below.

Our sponsors