Upload via Git Manager GUI - archive-faq.php

This commit is contained in:
2026-03-29 20:27:23 +00:00
parent 65f6fbb0a2
commit dce1de3f68

View File

@@ -1,9 +1,8 @@
<?php get_header(); ?> <!-- HIER WIRD DER HEADER EINGEBUNDEN --> <?php get_header(); ?>
<div class="container site-main"> <div class="container site-main">
<div class="content-area"> <div class="content-area">
<!-- Hülle um den gesamten FAQ-Inhalt für einen festen Hintergrund -->
<div class="faq-archive-container"> <div class="faq-archive-container">
<header class="page-header"> <header class="page-header">
@@ -12,16 +11,14 @@
</header> </header>
<?php <?php
// Alle FAQ-Kategorien abrufen
$categories = get_terms( array( $categories = get_terms( array(
'taxonomy' => 'faq_category', 'taxonomy' => 'faq_category',
'orderby' => 'name', 'orderby' => 'name',
'order' => 'ASC' 'order' => 'ASC',
) ); ) );
if ( ! empty( $categories ) && ! is_wp_error( $categories ) ) : ?> if ( ! empty( $categories ) && ! is_wp_error( $categories ) ) : ?>
<!-- Tab-Navigation -->
<ul class="faq-tabs"> <ul class="faq-tabs">
<?php <?php
$is_first = true; $is_first = true;
@@ -34,11 +31,10 @@
</button> </button>
</li> </li>
<?php <?php
$is_first = false; $is_first = false;
endforeach; ?> endforeach; ?>
</ul> </ul>
<!-- Container für alle Tab-Inhalte -->
<div class="faq-tab-content-container"> <div class="faq-tab-content-container">
<?php <?php
$is_first_pane = true; $is_first_pane = true;
@@ -58,8 +54,8 @@
'terms' => $category->slug, 'terms' => $category->slug,
), ),
), ),
'orderby' => 'menu_order', 'orderby' => 'menu_order',
'order' => 'ASC', 'order' => 'ASC',
) ); ) );
if ( $faqs->have_posts() ) : ?> if ( $faqs->have_posts() ) : ?>
@@ -78,7 +74,7 @@
</div> </div>
<?php <?php
$is_first_pane = false; $is_first_pane = false;
endforeach; ?> endforeach; ?>
</div> </div>
@@ -91,4 +87,4 @@
</div> </div>
</div> </div>
<?php get_footer(); ?> <!-- HIER WIRD DER FOOTER EINGEBUNDEN --> <?php get_footer(); ?>