Compare commits
4 Commits
165721e03a
...
ac4be1164a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac4be1164a | ||
|
|
c1d9f4720f | ||
|
|
33759696e7 | ||
|
|
53e1a20259 |
|
|
@ -8,7 +8,7 @@ require_once(__DIR__ . '/includes/logos.php');
|
||||||
require_once(__DIR__ . '/includes/article-columns.php');
|
require_once(__DIR__ . '/includes/article-columns.php');
|
||||||
require_once(__DIR__ . '/includes/revues-columns.php');
|
require_once(__DIR__ . '/includes/revues-columns.php');
|
||||||
require_once(__DIR__ . '/includes/revue.php');
|
require_once(__DIR__ . '/includes/revue.php');
|
||||||
require_once(__DIR__ . '/includes/auteurs.php');
|
// require_once(__DIR__ . '/includes/auteurs.php'); ### TO DELETE THE FILE BEACAUSE NOW IN CARHOP THEME
|
||||||
require_once(__DIR__ . '/includes/article.php');
|
require_once(__DIR__ . '/includes/article.php');
|
||||||
require_once(__DIR__ . '/includes/api.php');
|
require_once(__DIR__ . '/includes/api.php');
|
||||||
require_once(__DIR__ . '/includes/renderPostsDatas.php');
|
require_once(__DIR__ . '/includes/renderPostsDatas.php');
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,10 @@ $articles = new WP_Query($query_args);
|
||||||
$post_count = $articles->post_count;
|
$post_count = $articles->post_count;
|
||||||
$authors = get_posts(array(
|
$authors = get_posts(array(
|
||||||
'post_type' => 'auteurs',
|
'post_type' => 'auteurs',
|
||||||
'posts_per_page' => -1
|
'posts_per_page' => -1,
|
||||||
|
'order' => 'ASC',
|
||||||
|
'meta_key' => 'last_name',
|
||||||
|
'orderby' => 'meta_value',
|
||||||
));
|
));
|
||||||
|
|
||||||
$thematiques = get_terms(array(
|
$thematiques = get_terms(array(
|
||||||
|
|
@ -96,8 +99,9 @@ $thematiques = get_terms(array(
|
||||||
<?php get_template_part('template-parts/components/cards/post-card', null, array(
|
<?php get_template_part('template-parts/components/cards/post-card', null, array(
|
||||||
'ID' => get_the_ID(),
|
'ID' => get_the_ID(),
|
||||||
'showTags' => false,
|
'showTags' => false,
|
||||||
|
'has_thumbnail_overlay' => true,
|
||||||
)); ?>
|
)); ?>
|
||||||
<?php
|
<?php
|
||||||
// get_template_part('template-parts/articles/card-article', null, array(
|
// get_template_part('template-parts/articles/card-article', null, array(
|
||||||
// 'date' => get_the_date(),
|
// 'date' => get_the_date(),
|
||||||
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,10 @@ $revues = new WP_Query(array(
|
||||||
$post_count = $revues->post_count;
|
$post_count = $revues->post_count;
|
||||||
$authors = get_posts(array(
|
$authors = get_posts(array(
|
||||||
'post_type' => 'auteurs',
|
'post_type' => 'auteurs',
|
||||||
'posts_per_page' => -1
|
'posts_per_page' => -1,
|
||||||
|
'order' => 'ASC',
|
||||||
|
'meta_key' => 'last_name',
|
||||||
|
'orderby' => 'meta_value',
|
||||||
));
|
));
|
||||||
|
|
||||||
$thematiques = get_terms(array(
|
$thematiques = get_terms(array(
|
||||||
|
|
@ -73,7 +76,7 @@ $thematiques = get_terms(array(
|
||||||
<?php if ($revues->have_posts()) : ?>
|
<?php if ($revues->have_posts()) : ?>
|
||||||
<?php while ($revues->have_posts()) : $revues->the_post(); ?>
|
<?php while ($revues->have_posts()) : $revues->the_post(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
|
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
|
||||||
// get_template_part('template-parts/revues/card-revue', null, array(
|
// get_template_part('template-parts/revues/card-revue', null, array(
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user