Skip to content

Commit

Permalink
Merge pull request #958 from equalizedigital/feature/local-dev-branch
Browse files Browse the repository at this point in the history
unique id
  • Loading branch information
tronsymphony authored Nov 14, 2023
2 parents 84fd856 + 7577026 commit 646a072
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 646a072

Please sign in to comment.