From 457a42ed14fb5839ae2f22769957f703b7bea4f1 Mon Sep 17 00:00:00 2001 From: Himadree Shekhar Halder Date: Thu, 15 Feb 2024 13:08:53 +0600 Subject: [PATCH 01/22] Post Grid: Fix post term show issue --- includes/Template/Post-Grid/default.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/includes/Template/Post-Grid/default.php b/includes/Template/Post-Grid/default.php index d018a8dc8..6b52c4040 100644 --- a/includes/Template/Post-Grid/default.php +++ b/includes/Template/Post-Grid/default.php @@ -126,12 +126,12 @@ class="eael-post-elements-readmore-btn"' . $link_settings['read_more_link_nofoll if ($settings['eael_post_terms'] === 'tags') { $terms = get_the_tags(); } - + //For custom post type - $get_custom_post_type = get_post_type( get_the_ID() ); - $get_custom_taxonomy = $settings["eael_{$get_custom_post_type}_terms"]; + $get_custom_post_type = get_post_type( get_the_ID() ); //post + $get_custom_taxonomy = $settings["eael_{$get_custom_post_type}_terms"]; //tags - if ( $settings[ 'eael_post_terms' ] === $get_custom_taxonomy ) { + if( 'post' !== $get_custom_post_type && $settings[ 'eael_post_terms' ] === $get_custom_taxonomy ) { $terms = wp_get_post_terms( get_the_ID(), $get_custom_taxonomy ); } @@ -139,7 +139,6 @@ class="eael-post-elements-readmore-btn"' . $link_settings['read_more_link_nofoll $html = '