Last active
October 13, 2020 17:15
-
-
Save Prroffessorr/b6afbbca7027e7afad98688a1c4ac6a8 to your computer and use it in GitHub Desktop.
ACF Отображение (ИЗОБРАЖЕНИЙ), которые находятся в "Группе"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $logo = get_field('logo_image_and_url','option'); //Получаем поля в группе | |
//option это не обязательный параметр, он показывает что настройка находяится в отдельном элементе меню | |
if( $logo ): ?> | |
<li> | |
<a href="<?php echo $logo['logo_image_url'] ; ?>" class="logoPage"> | |
<img src="<?php echo esc_url ($logo['logo_image']['url'] );//Пример отображения ИЗОБРАЖЕНИЙ из группы ?>" alt="logo"> | |
</a> | |
</li> | |
<?php endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment