<?php get_header(); ?>
<?php
$post_type = get_post_type();
$post_type_ojb = get_post_type_object( $post_type );
$overview_title = get_field( 'overview_title', 'page_' . $post_type) ? : $post_type_ojb->label;
$overview_sub_title = get_field( 'overview_sub_title', 'page_' . $post_type );
$filter_label = get_field( 'filter_label', 'page_' . $post_type );
$count_posts = wp_count_posts( $post_type );
$header_class = ($count_posts->publish > 0) ? 'with-image' : 'no-image';
$title_archive = get_field( 'title_archive', 'option' );
//$subtitle_archive = get_field( 'subtitle_archive', 'option' );
?>
<div class="cpt-header-box <?php echo $header_class; ?>">
<div class="saffullwidthwbody safpadding">
<div class="safblogtitle" style="width:50%; float:left;">
<h1 class="cpt-title"><?php echo esc_html( $title_archive ); ?></h1>
</div>
<div class="safblogfilter" style="float:right;">
<?php
$args = array(
'post_type' => $post_type,
'filter_label' => $filter_label
);
?>
<?php get_template_part( 'template-parts/filters', '', $args ); ?>
</div>
</div>
</div>
<?php $post_type = get_post_type(); ?>
<main id="main" class="main main-archive">
<?php if ( have_posts() ) : ?>
<div class="posts-list-wrap sec-margin-blocks">
<div class="posts-list flex-box-parent">
<?php while ( have_posts() ) : the_post(); ?>
<?php
$loop_args = array( 'cat_blog' => $_GET['cat_blog'] ?? '' );
?>
<?php get_template_part( 'template-parts/posts-loop', '', $loop_args ); ?>
<?php endwhile; ?>
"Attempt to read property "label" on null"
<?php get_header(); ?>
<?php
$post_type = get_post_type();
$post_type_ojb = get_post_type_object( $post_type );
$overview_title = get_field( 'overview_title', 'page_' . $post_type) ? : $post_type_ojb->label;
$overview_sub_title = get_field( 'overview_sub_title', 'page_' . $post_type );
$filter_label = get_field( 'filter_label', 'page_' . $post_type );
$count_posts = wp_count_posts( $post_type );
$header_class = ($count_posts->publish > 0) ? 'with-image' : 'no-image';
$title_archive = get_field( 'title_archive', 'option' );
//$subtitle_archive = get_field( 'subtitle_archive', 'option' );
?>
<div class="cpt-header-box <?php echo $header_class; ?>">
<div class="saffullwidthwbody safpadding">
<div class="safblogtitle" style="width:50%; float:left;">
<h1 class="cpt-title"><?php echo esc_html( $title_archive ); ?></h1>
</div>
<div class="safblogfilter" style="float:right;">
<?php
$args = array(
'post_type' => $post_type,
'filter_label' => $filter_label
);
?>
<?php get_template_part( 'template-parts/filters', '', $args ); ?>
</div>
</div>
</div>
<?php $post_type = get_post_type(); ?>
<main id="main" class="main main-archive">
<?php if ( have_posts() ) : ?>
<div class="posts-list-wrap sec-margin-blocks">
<div class="posts-list flex-box-parent">
<?php while ( have_posts() ) : the_post(); ?>
<?php
$loop_args = array( 'cat_blog' => $_GET['cat_blog'] ?? '' );
?>
<?php get_template_part( 'template-parts/posts-loop', '', $loop_args ); ?>
<?php endwhile; ?>
2
"Attempt to read property "label" on null"
"/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
5
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
"/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
"/www/vanhessennl_898/public/wp-includes/template-loader.php"
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
"/www/vanhessennl_898/public/wp-blog-header.php"
Key | Value |
query_vars | array:1 [ "category_name" => "section-thumbnails" ] |
query_string | "category_name=section-thumbnails"
|
request | "category/section-thumbnails"
|
matched_rule | "category/(.+?)/?$"
|
matched_query | "category_name=section-thumbnails"
|
did_permalink | true
|
Key | Value |
query | array:1 [ "category_name" => "section-thumbnails" ] |
query_vars | array:9 [ "category_name" => "section-thumbnails" "cat" => 7 "cache_results" => true "update_post_term_cache" => true "lazy_load_term_meta" => true "update_post_meta_cache" => true "posts_per_page" => 10 "comments_per_page" => "50" "order" => "DESC" ] |
tax_query | WP_Tax_Query {#12316} |
meta_query | WP_Meta_Query {#12314} |
queried_object | WP_Term {#12315} |
queried_object_id | 7
|
request | """ \n \t\t\t\t\tSELECT SQL_CALC_FOUND_ROWS wp_va_posts.ID\n \t\t\t\t\tFROM wp_va_posts LEFT JOIN wp_va_term_relationships ON (wp_va_posts.ID = wp_va_term_relationships.object_id)\n \t\t\t\t\tWHERE 1=1 AND ( \n wp_va_term_relationships.term_taxonomy_id IN (7)\n ) AND ((wp_va_posts.post_type = 'post' AND (wp_va_posts.post_status = 'publish' OR wp_va_posts.post_status = 'acf-disabled')))\n \t\t\t\t\tGROUP BY wp_va_posts.ID\n \t\t\t\t\tORDER BY wp_va_posts.menu_order, wp_va_posts.post_date DESC\n \t\t\t\t\tLIMIT 0, 10\n \t\t\t\t """ |
current_post | -1
|
before_loop | true
|
current_comment | -1
|
is_archive | true
|
is_category | true
|
Key | Value |
SERVER_SOFTWARE | "nginx/1.25.2"
|
REQUEST_URI | "/category/section-thumbnails/"
|
MAGICK_TEMPORARY_PATH | "/www/vanhessennl_898/tmp"
|
USER | "vanhessennl"
|
HOME | "/www/vanhessennl_898"
|
HTTP_X_KINSTA_EDGE_LB | "KCW"
|
HTTP_X_KINSTA_EDGE_INCOMINGIP | "34.235.150.151"
|
HTTP_KI_REQUEST_METAL | "233"
|
HTTP_KI_REQUEST_COLO | "352"
|
HTTP_CF_DEVICE_TYPE | "desktop"
|
HTTP_CF_CONNECTING_IP | "34.235.150.151"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_ACCEPT | "*/*"
|
HTTP_CDN_LOOP | "cloudflare; subreqs=1"
|
HTTP_CF_EW_VIA | "15"
|
HTTP_CF_VISITOR | "{\"scheme\":\"https\"}"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_CF_RAY | "86bed218121107c8-AMS"
|
HTTP_X_FORWARDED_FOR | "34.235.150.151"
|
HTTP_ACCEPT_ENCODING | "gzip, br"
|
HTTP_CF_IPCOUNTRY | "US"
|
HTTP_CF_WORKER | "kinsta.cloud"
|
SCRIPT_FILENAME | "/www/vanhessennl_898/public/index.php"
|
REDIRECT_STATUS | "200"
|
WP_ENVIRONMENT_TYPE | "production"
|
KINSTA_CACHE_ZONE | "KINSTAWP"
|
SERVER_NAME | "www.vanhessen.nl"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "10.0.6.117"
|
REMOTE_PORT | "" |
REMOTE_ADDR | "34.235.150.151"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
HTTP_HOST | "www.vanhessen.nl"
|
HTTPS | "on"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
DOCUMENT_ROOT | "/www/vanhessennl_898/public"
|
DOCUMENT_URI | "/index.php"
|
SCRIPT_NAME | "/index.php"
|
CONTENT_LENGTH | "" |
CONTENT_TYPE | "" |
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1711704410.9708
|
REQUEST_TIME | 1711704410
|