Файловый менеджер - Редактировать - /var/www/vhosts/morphe2.dev1.mndrn.cloud/wp-content/themes/morphe/templateBlocchi/blocco-carouselMarchi.php
Назад
<section id="carouselMarchi"> <?php if (is_tax()) : ?> <?php $associazioni = get_field('marchi_associati'); ?> <?php if ( is_user_logged_in()) : ?> <?php endif; ?> <div class="container"> <div class="titleSection"> <h3> <span> I nostri marchi </span> </h3> </div> <div class="marchiCarousel"> <?php $count = 0; foreach ($associazioni as $key => $associazione) : $count++; ?> <?php $link = get_permalink($associazione->ID); //echo '<pre>'.print_r(, 1).'</pre>'; ?> <?php $img = get_the_post_thumbnail_url($associazione->ID) ?> <div class="wrapSlick"> <a href="<?php echo $link; ?>"> <img src="<?php echo $img; ?>" alt=" <?php echo $associazione->post_title; ?> "> </a> </div> <?php endforeach; ?> </div> </div> <?php else : ?> <?php $args = array( 'post_type' => 'marchi', 'posts_per_page' => -1 ); $query = new WP_Query( $args ); ?> <div class="container"> <div class="titleSection"> <h3> <span> I nostri marchi </span> </h3> </div> <div class="marchiCarousel"> <?php if ( $query->have_posts() ) : ?> <?php $count = 0; while ( $query->have_posts() ) : $count++; ?> <?php $query->the_post(); ?> <div class="wrapSlick"> <a href="<?php the_permalink(); ?>"> <img src="<?php the_post_thumbnail_url(); ?>" alt=" <?php the_title(); ?> "> </a> </div> <?php endwhile; ?> <?php endif; wp_reset_query(); wp_reset_postdata(); ?> </div> </div> <?php endif; ?> </section>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка