From 88bccddac623d49fc3d965521c1c4c655c25a341 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Wed, 22 May 2024 20:33:27 -0400 Subject: [PATCH] fixed - resouce liinks tab panel output if type_of_button is set to link --- .../blocks/resource-links/resource-links.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/template-parts/blocks/resource-links/resource-links.php b/template-parts/blocks/resource-links/resource-links.php index b6f7fc9..7caf89a 100644 --- a/template-parts/blocks/resource-links/resource-links.php +++ b/template-parts/blocks/resource-links/resource-links.php @@ -165,12 +165,16 @@ if ( ! empty( $row['selected_posts'] ) ) { $selected_posts = $row['selected_posts']; } - if( 'link' === get_field( 'type_of_button' ) ) { + if( 'link' === $row['type_of_button'] ) { continue; } - ?> -