<?php $paged = (get_query_var('paged')) ? get_query_var('paged') :1;
<div class="row row-product">
<div class="carts carts--small row-flex more-content">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$categ = get_field('cat', $post->ID);
$args = array( 'paged' => $paged ,'category_name' => $categ, 'post_type' => 'ray_tipov_item');
$wp_query = new WP_Query( $args );?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="carts-item">
<img src="<?php the_field('pic', $post->ID); ?>" alt="" class="row-product__img">
<p class="carts__title"><?php the_field('title', $post->ID); ?></p>
<div class="carts-inside">
<p class="carts__desc"><?php the_field('disc', $post->ID); ?></p>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'paged' => $paged ,'category_name' => $categ, 'post_type' => 'ray_tipov_item');
$args = array( 'posts_per_page' => -1 ,'category_name' => $categ, 'post_type' => 'ray_tipov_item');