From bef62d9251c6eeef1f43680f830eda7d2f687889 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 28 Feb 2023 14:38:52 -0300 Subject: [PATCH] Disables Tainacan default the_content filter as we use template hierarchy to override it. --- src/functions.php | 4 ++++ src/tainacan/archive-terms.php | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index b9c23a2..8a9c795 100644 --- a/src/functions.php +++ b/src/functions.php @@ -3,6 +3,10 @@ /** Theme version */ const TAINACAN_INTERFACE_VERSION = '2.6'; +/* Disables Tainacan Theme Helper the_content filter, which is used to build a custom item and taxonomy (terms list) template. */ +define('TAINACAN_DISABLE_ITEM_THE_CONTENT_FILTER', true); +define('TAINACAN_DISABLE_TAXONOMY_THE_CONTENT_FILTER', true); + /** * Setup Theme */ diff --git a/src/tainacan/archive-terms.php b/src/tainacan/archive-terms.php index 947d1d1..c1fc881 100644 --- a/src/tainacan/archive-terms.php +++ b/src/tainacan/archive-terms.php @@ -78,7 +78,15 @@ - + '; + echo '

' . __('It seems that you are using a legacy vesion of the Tainacan plugin. Please update in order to use the latest features for displaying the terms list.', 'tainacan-interface') . '

'; + echo ''; + } + ?>