Файловый менеджер - Редактировать - /var/www/vhosts/morphe2.dev1.mndrn.cloud/wp-content/themes/morphe/single-marchi.php
Назад
<?php get_header(); $MarchioId = get_the_ID();?> <div class="container"> <div class="breadCrumb"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div> <div class="headerMarchio"> <img src="<?php the_post_thumbnail_url(); ?>" alt=" <?php the_title(); ?> "> </div> <hr> <?php $args = array('post_type' => 'prodotti', 'posts_per_page' => -1 ); $query = new WP_Query( $args ); ?> <div class="wrapProdotti"> <div class="row"> <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?> <?php $idMarchi = get_field('marchi_associati'); //echo '<pre>'.print_r($slugMarchi, 1).'</pre>'; ?> <?php foreach ($idMarchi as $key => $idMarchio) : ?> <?php if ($MarchioId == $idMarchio->ID) : ?> <div class="col-12 col-lg-4 marginProduct"> <a href="<?php the_permalink(); ?>"> <div class="titleProdotto"> <h2><?php the_title(); ?></h2> </div> <img src="<?php the_post_thumbnail_url(); ?>" alt=" <?php the_title(); ?> "> </a> </div> <?php endif; ?> <?php endforeach; ?> <?php endwhile; endif; wp_reset_query(); wp_reset_postdata(); ?> </div> </div> </div> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка