TEST
<?php function add_extra_portfolio() { echo 'Hello World!'; $images = get_field('hinh_anh_du_an'); if( $images ): ?> <ul> <?php foreach( $images as $image ): ?> <li> <a href="<?php echo esc_url($image['url']); ?>"> <img src="<?php echo esc_url($image['sizes']['thumbnail']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" /> </a> <p><?php echo esc_html($image['caption']); ?></p> </li> <?php endforeach; ?> </ul> <?php endif; } add_action('flatsome_portfolio_title_after','add_extra_portfolio'); ?>