refining and temporarely hiding filter
This commit is contained in:
parent
1c7cd647da
commit
b8b4e92833
|
|
@ -25,6 +25,7 @@ $sousThematiques = get_terms(array(
|
||||||
$query_args = array(
|
$query_args = array(
|
||||||
'post_type' => 'questions',
|
'post_type' => 'questions',
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
'status' => 'publish',
|
||||||
'tax_query' => array(
|
'tax_query' => array(
|
||||||
array(
|
array(
|
||||||
'taxonomy' => 'thematiques',
|
'taxonomy' => 'thematiques',
|
||||||
|
|
@ -61,7 +62,7 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="post-question-page <?php echo $thematiqueColorSlug ? "post-question-page--" . $mainThematique->slug : "" ?>"" data-thematique-id=" <?php echo $currentThematique->term_id ?>">
|
<div class="post-question-page-container <?php echo $thematiqueColorSlug ? "post-question-page--" . $mainThematique->slug : "" ?>"" data-thematique-id=" <?php echo $currentThematique->term_id ?>">
|
||||||
|
|
||||||
<?php get_template_part(
|
<?php get_template_part(
|
||||||
'template-components/posts-components/chapter-header',
|
'template-components/posts-components/chapter-header',
|
||||||
|
|
@ -78,22 +79,24 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
||||||
); ?>
|
); ?>
|
||||||
<section class=" post-question-page__accordeons-container ">
|
<section class=" post-question-page__accordeons-container ">
|
||||||
<?php if ($mainThematique && $sousThematiques) : ?>
|
<?php if ($mainThematique && $sousThematiques) : ?>
|
||||||
<div class=" thematiques_filters">
|
<?php
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- <div class=" thematiques_filters">
|
||||||
|
|
||||||
<nav class="thematiques-subtaxonomy-links" aria-label="breadcrumbs">
|
<nav class="thematiques-subtaxonomy-links" aria-label="breadcrumbs">
|
||||||
<h3><?php echo __("Filtrer par catégories", "homegrade-theme__texte-fonctionnel") ?></h3>
|
<h3><?php echo __("Filtrer par catégories", "homegrade-theme__texte-fonctionnel") ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($sousThematiques as $sousThematique) : ?>
|
<?php foreach ($sousThematiques as $sousThematique) : ?>
|
||||||
<li data-filter="<?php echo $sousThematique->slug ?>">
|
<li data-filter="<?php echo $sousThematique->slug ?>">
|
||||||
<button class="cta cta--outline cta--button text-<?php echo $currentThematique->slug ?>"><?php echo $currentThematique->slug ?></button>
|
<button class="cta cta--outline cta--button text-<?php echo $sousThematique->slug ?>"><?php echo $sousThematique->name ?></button>
|
||||||
<!-- <a class="cta cta--outline cta--button text-<?php echo $currentThematique->slug ?>" href="<?php echo get_term_link($sousThematique) ?>" <?php echo $sousThematique == get_queried_object() ? "aria-current='location'" : "" ?>><?php echo $sousThematique->name ?></a> -->
|
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 aria-live=" polite"><?php echo __("Nombre de résultats", 'homegrade-theme__texte-fonctionnel') . " : " . count($relatedTaxQuestions->posts) ?></h2>
|
<h2 aria-live=" polite"><?php echo __("Nombre de résultats", 'homegrade-theme__texte-fonctionnel') . " : " . count($relatedTaxQuestions->posts) ?></h2>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</div>
|
</div> -->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -114,7 +117,7 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
||||||
<?php endwhile ?>
|
<?php endwhile ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</section>
|
</section>
|
||||||
<button id="load-more-questions"><?php echo __("Charger plus de questions", "homegrade-theme__texte-fonctionnel") ?></button>
|
<!-- <button id="load-more-questions"><?php echo __("Charger plus de questions", "homegrade-theme__texte-fonctionnel") ?></button> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user