diff --git a/src/functions.php b/src/functions.php index fb77c97..c64753f 100644 --- a/src/functions.php +++ b/src/functions.php @@ -197,10 +197,11 @@ function tainacan_active($selected, $current = true, $echo = true) { } -add_filter('get_the_archive_title', function() { +add_filter('get_the_archive_title', function($title) { if (is_post_type_archive('tainacan-collection')) { return __('Collections', 'tainacan-theme'); } + return $title; }); add_action('pre_get_posts', function($query) { diff --git a/src/template-parts/loop.php b/src/template-parts/loop.php index 7abfe9a..463e30a 100644 --- a/src/template-parts/loop.php +++ b/src/template-parts/loop.php @@ -4,16 +4,20 @@