/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php
<?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; ?>
Arguments
"Attempt to read property "label" on null"
/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php
<?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; ?>
Arguments
2
"Attempt to read property "label" on null"
"/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
5
/www/vanhessennl_898/public/wp-includes/template-loader.php
}
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;
}
Arguments
"/www/vanhessennl_898/public/wp-content/themes/vanhessen-child-theme/archive.php"
/www/vanhessennl_898/public/wp-blog-header.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';
}
Arguments
"/www/vanhessennl_898/public/wp-includes/template-loader.php"
/www/vanhessennl_898/public/index.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';
Arguments
"/www/vanhessennl_898/public/wp-blog-header.php"