From 9398258fb6444cd03f0974bda3f9d0fdfa83053d Mon Sep 17 00:00:00 2001 From: "Jorge hangar.org" Date: Fri, 29 Apr 2022 17:57:52 +0200 Subject: [PATCH] show resources title, category or tag in view --- archive.php | 3 ++- search.php | 5 +++-- template-parts/archive-resources.php | 13 +++++++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/archive.php b/archive.php index 93f471e..7d8d370 100644 --- a/archive.php +++ b/archive.php @@ -29,7 +29,8 @@ endif;
'10' ) ); get_template_part( 'template-parts/archive', 'resources'); diff --git a/search.php b/search.php index 76e91cb..e991f2e 100644 --- a/search.php +++ b/search.php @@ -27,8 +27,9 @@ get_header(); ?> - - +
diff --git a/template-parts/archive-resources.php b/template-parts/archive-resources.php index 2438e0f..cfa3e2e 100644 --- a/template-parts/archive-resources.php +++ b/template-parts/archive-resources.php @@ -21,13 +21,18 @@
-

+

Resources

'; + single_cat_title( 'category: ' ); + echo ''; + elseif ( is_tax( 'archive_resource_tag' ) ): + echo '

'; + single_term_title( '#' ); + echo '

'; endif; ?> -