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(
|
||||
'post_type' => 'questions',
|
||||
'posts_per_page' => -1,
|
||||
'status' => 'publish',
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'thematiques',
|
||||
|
|
@ -61,7 +62,7 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
|||
</ol>
|
||||
</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(
|
||||
'template-components/posts-components/chapter-header',
|
||||
|
|
@ -78,22 +79,24 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
|||
); ?>
|
||||
<section class=" post-question-page__accordeons-container ">
|
||||
<?php if ($mainThematique && $sousThematiques) : ?>
|
||||
<div class=" thematiques_filters">
|
||||
<?php
|
||||
|
||||
?>
|
||||
<!-- <div class=" thematiques_filters">
|
||||
|
||||
<nav class="thematiques-subtaxonomy-links" aria-label="breadcrumbs">
|
||||
<h3><?php echo __("Filtrer par catégories", "homegrade-theme__texte-fonctionnel") ?></h3>
|
||||
<ul>
|
||||
<?php foreach ($sousThematiques as $sousThematique) : ?>
|
||||
<li data-filter="<?php echo $sousThematique->slug ?>">
|
||||
<button class="cta cta--outline cta--button text-<?php echo $currentThematique->slug ?>"><?php echo $currentThematique->slug ?></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> -->
|
||||
<button class="cta cta--outline cta--button text-<?php echo $sousThematique->slug ?>"><?php echo $sousThematique->name ?></button>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<h2 aria-live=" polite"><?php echo __("Nombre de résultats", 'homegrade-theme__texte-fonctionnel') . " : " . count($relatedTaxQuestions->posts) ?></h2>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div> -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
|
@ -114,7 +117,7 @@ $relatedTaxQuestions = new WP_Query($query_args);
|
|||
<?php endwhile ?>
|
||||
<?php endif; ?>
|
||||
</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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user