From 757702658c608e6c9540fba0642c3716ae8d54a8 Mon Sep 17 00:00:00 2001 From: nitya Date: Mon, 13 Nov 2023 17:16:37 -0800 Subject: [PATCH] unique id --- template-parts/blocks/featured-institution/template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template-parts/blocks/featured-institution/template.php b/template-parts/blocks/featured-institution/template.php index 0af1ff1..18460e8 100644 --- a/template-parts/blocks/featured-institution/template.php +++ b/template-parts/blocks/featured-institution/template.php @@ -9,6 +9,8 @@ * @package Block */ + + if ( isset( $block['data']['preview_image_help'] ) ) : esc_attr( Loader_Gutenberg::get_preview_image( $block['data']['preview_image_help'], $block['name'] ) ); return; @@ -51,7 +53,7 @@ $show_contact = get_field( 'show_contact' ); $show_feature_list = get_field( 'show_feature_list' ); $block_id = get_field( 'block_id' ); -$time_stamp = $block_id . wp_rand( 0, 23 ); +$time_stamp = my_acf_block_unique_id() . wp_rand( 0, 23 ); ?>