📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-20 23:07:45
📂
/ (Root)
/
home
/
xeqi7597
/
public_html
/
wp-content
/
themes
/
ClrD
📍 /home/xeqi7597/public_html/wp-content/themes/ClrD
🔄 Refresh
✏️
Editing: taxonomy-expertise.php
Writable
<?php get_header();?> <section class="portfolio-taxonomie"> <div> <h1 class="titre-principal"><?php the_field('page_portfolio_expertise_titre','106'); ?></br><strong><?php single_term_title(); ?></strong></h1> </div> <div class="catalogue-projet portfolio"> <?php // Obtenir le terme actuel $term = get_queried_object(); $term_slug = $term->slug; // Récupération des projets de l'expertise actuelle via WP_Query $args = array( 'post_type' => 'projet', 'post_status' => 'publish', 'orderby' => 'rand', 'tax_query' => array( array( 'taxonomy' => 'expertise', 'field' => 'slug', 'terms' => $term_slug, ), ), ); $query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); ?> <?php get_template_part('template-parts/projets-vignette'); ?> <?php } wp_reset_postdata(); } ?> </div> <div class="contact"> <h3 class="btn-titre" ><?php the_field('page_portfolio_expertise_bouton_titre','106'); ?></h3> <div> <a class="bouton" href="<?php echo home_url('/portfolio'); ?>"> <i class="fa-solid fa-arrow-right"></i> <span><?php the_field('page_portfolio_expertise_bouton_titre_plus','106'); ?></span> </a> </div> </div> </section> <?php get_footer();
💾 Save Changes
❌ Cancel