<?php
$cat = get_field('categorie_a_lister');
$mis_en_avant = get_field('mis_en_avant');
$args = array(
'post_type' => 'post',
'posts_per_page' => 9,
'suppress_filters' => false,
'post__not_in' => array($mis_en_avant),
'cat' => $cat,
);
// $count_posts = wp_count_posts( $post_type = 'post' );
// $count_posts = $count_posts->publish;
$count_posts = get_category($cat[0])->category_count;
$articles = new WP_Query($args);
$count_current = count($articles->posts);
?>
<?php
if (!empty($mis_en_avant)){
?>
<div class="wrapper">
<div class="mis_en_avant">
<?php
if (!empty($mis_en_avant)){
$article_id = $mis_en_avant;
$titre = get_the_title($article_id);
$link = get_the_permalink($article_id);
"Attempt to read property "category_count" on null"
<?php
$cat = get_field('categorie_a_lister');
$mis_en_avant = get_field('mis_en_avant');
$args = array(
'post_type' => 'post',
'posts_per_page' => 9,
'suppress_filters' => false,
'post__not_in' => array($mis_en_avant),
'cat' => $cat,
);
// $count_posts = wp_count_posts( $post_type = 'post' );
// $count_posts = $count_posts->publish;
$count_posts = get_category($cat[0])->category_count;
$articles = new WP_Query($args);
$count_current = count($articles->posts);
?>
<?php
if (!empty($mis_en_avant)){
?>
<div class="wrapper">
<div class="mis_en_avant">
<?php
if (!empty($mis_en_avant)){
$article_id = $mis_en_avant;
$titre = get_the_title($article_id);
$link = get_the_permalink($article_id);
}
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;
}
"/var/www/cvegroup-dev.agence-wat.net/www/wp-content/themes/wat-wp-theme/template-publications.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';
}
"/var/www/cvegroup-dev.agence-wat.net/www/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';
"/var/www/cvegroup-dev.agence-wat.net/www/wp-blog-header.php"
Key | Value |
query_vars | array:2 [ "page" => "" "pagename" => "actualites-et-media/revue-de-presse" ] |
query_string | "pagename=actualites-et-media%2Frevue-de-presse"
|
request | "actualites-et-media/revue-de-presse"
|
matched_rule | "(.?.+?)(?:/([0-9]+))?/?$"
|
matched_query | "pagename=actualites-et-media%2Frevue-de-presse&page="
|
did_permalink | true
|
Key | Value |
query | array:2 [ "page" => "" "pagename" => "actualites-et-media/revue-de-presse" ] |
query_vars | array:10 [ "pagename" => "revue-de-presse" "name" => "revue-de-presse" "fields" => "all" "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" ] |
meta_query | WP_Meta_Query {#7034} |
queried_object | WP_Post {#7033} |
queried_object_id | 4890
|
request | """ SELECT wp_posts.*\n \t\t\t\t\t FROM wp_posts JOIN wp_icl_translations wpml_translations\n \t\t\t\t\t\t\tON wp_posts.ID = wpml_translations.element_id\n \t\t\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', wp_posts.post_type) \n \t\t\t\t\t WHERE 1=1 AND (wp_posts.ID = '4890') AND wp_posts.post_type = 'page' AND ( ( ( wpml_translations.language_code = 'fr' OR 0 ) AND wp_posts.post_type IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation' ) ) OR wp_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation' ) )\n \t\t\t\t\t \n \t\t\t\t\t ORDER BY wp_posts.post_date DESC\n \t\t\t\t\t """ |
post_count | 1
|
current_post | -1
|
before_loop | true
|
current_comment | -1
|
found_posts | 1
|
is_page | true
|
is_singular | true
|
Key | Value |
ID | 4890
|
post_author | "1"
|
post_date | "2024-09-10 16:24:50"
|
post_date_gmt | "2024-09-10 14:24:50"
|
post_content | "" |
post_title | "Revue de presse"
|
post_excerpt | "" |
post_status | "publish"
|
comment_status | "closed"
|
ping_status | "closed"
|
post_password | "" |
post_name | "revue-de-presse"
|
to_ping | "" |
pinged | "" |
post_modified | "2024-09-11 15:50:09"
|
post_modified_gmt | "2024-09-11 13:50:09"
|
post_content_filtered | "" |
post_parent | 34
|
guid | "https://cvegroup-dev.agence-wat.net/?page_id=4890"
|
menu_order | 0
|
post_type | "page"
|
post_mime_type | "" |
comment_count | "0"
|
filter | "raw"
|
Key | Value |
wp-wpml_current_language | "fr"
|
Key | Value |
ac_flash | [] |
Key | Value |
SERVER_SOFTWARE | "Apache"
|
REQUEST_URI | "/actualites-et-media/revue-de-presse/"
|
USER | "www-data"
|
HOME | "/var/www"
|
SCRIPT_NAME | "/index.php"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/actualites-et-media/revue-de-presse/"
|
REMOTE_PORT | "58188"
|
SCRIPT_FILENAME | "/var/www/cvegroup-dev.agence-wat.net/www/index.php"
|
SERVER_ADMIN | "noc@synalabs.com"
|
CONTEXT_DOCUMENT_ROOT | "/var/www/cvegroup-dev.agence-wat.net/www/"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "https"
|
DOCUMENT_ROOT | "/var/www/cvegroup-dev.agence-wat.net/www/"
|
REMOTE_ADDR | "18.97.9.174"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "87.98.167.26"
|
SERVER_NAME | "cvegroup-dev.agence-wat.net"
|
SERVER_SIGNATURE | "" |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin"
|
HTTP_CONNECTION | "Keep-Alive"
|
HTTP_HOST | "cvegroup-dev.agence-wat.net"
|
HTTP_ACCEPT_ENCODING | "br,gzip"
|
HTTP_ACCEPT_LANGUAGE | "en-US,en;q=0.5"
|
HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
|
HTTP_USER_AGENT | "CCBot/2.0 (https://commoncrawl.org/faq/)"
|
SSL_TLS_SNI | "cvegroup-dev.agence-wat.net"
|
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
REDIRECT_SSL_TLS_SNI | "cvegroup-dev.agence-wat.net"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1745573355.8148
|
REQUEST_TIME | 1745573355
|