Skip to content

Commit

Permalink
unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
tronsymphony committed Nov 14, 2023
1 parent 1058c0a commit 7577026
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion template-parts/blocks/featured-institution/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 );
?>
<section id="<?php echo !empty($block_id)? $block_id:esc_attr( $classid ); ?>" class="<?php echo esc_attr( $class_name ); ?>">

Expand Down

0 comments on commit 7577026

Please sign in to comment.