HEX
Server: Apache/2.4.63 (Unix)
System: Linux pinkman.beget.ru 5.10.258-0-beget-acl #1 SMP Mon Jun 8 11:35:04 UTC 2026 x86_64
User: kulikosl (3031)
PHP: 8.4.6
Disabled: NONE
Upload Files
File: /home/k/kulikosl/kulikosl.beget.tech/public_html/back/zootheme 2612/archive-actions.php
<?php get_header(); 
   ?>
 
 <section class="section section_view_slider">
						<div class="section__inner">
							<div class="layout layout-grid layout_cols_12">
								<h2 class="section__header">Акции</h2>

								 

								<section class="section__items swiper mySwipers">
									<div class="section__items-body swiper-wrappers">
										<?php 
										$args=array();
										$args['post_type']='actions';
										$args['posts_per_page']='-1';	
										global $wp_query;
										global $page, $numpages, $multipage, $more;
										$the_query = new WP_Query( $args ); 
										
										if ( $the_query->have_posts() ) : 
										while ( $the_query->have_posts() ) : $the_query->the_post(); 
										$sort=get_the_ID();
										 
											$thumb_id = get_post_thumbnail_id($sort);
  $thumb_url = wp_get_attachment_image_src($thumb_id,'medium', true);
 ?>	 
<div class="swiper-slide_wrapper">
<div class="section__item swiper-slide">
	
<div class="section__item-icon-cli" style="background-image: url(<?php echo $thumb_url[0];?>);"></div>
<div class="section__item-name"><?php echo get_the_title($sort);?></div>
<div class="section__clinic-block-short"><?php echo do_excerpt(get_post_meta($sort,'short',1), 15);?></div> 
<div class="section__item-view"><a class="link-more" href="<?php echo get_the_permalink($sort);?>">Подробнее</a></div>

</div>
</div>
										
										<?php 
										endwhile; 
										wp_reset_postdata();
										endif;
										?>
										
										
										 
									</div>
									<div style="clear: both"></div>
									
								</section>

								<div class="swiper-pagination"></div>

							</div>
						</div>
					</section>
 
 
 
 <?php get_footer();?>