From cb916bc37edc4bfae89505e251536be985d231a1 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Wed, 22 Feb 2023 23:27:02 +0100 Subject: [PATCH] show only active category in each faq post --- inc/template-functions.php | 22 ++++++++++++++++++++++ template-parts/content-post.php | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/inc/template-functions.php b/inc/template-functions.php index ebf99f5..04f6705 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -90,3 +90,25 @@ if ( ! function_exists( 'ofisuport_display_faqs_labels' ) ) : '; + echo ' '; + echo ' '; + } + } +endif; //end ofisuport_display_each_faq_categories diff --git a/template-parts/content-post.php b/template-parts/content-post.php index a0f2d67..eee3af2 100644 --- a/template-parts/content-post.php +++ b/template-parts/content-post.php @@ -18,8 +18,9 @@ if ( 'post' === get_post_type() ) : ?>
-