<?php
get_header();
?>
<!-- SERVICE BEGIN -->
<div class="custom-wrap">
<div class="container">
<div class="price">
<?php $posts = get_posts(array('post_type' => 'ray_tipov_simple'));
foreach($posts as $post){ ?>
<div class="custom-wrap <?=get_field('disabl', $post->ID) ? 'disabl' : '';?>">
<div class="container">
<div class="price">
<p class="price__top-title"><?php the_field('top_text', $post->ID); ?></p>
<p class="price__title"><?php the_field('title', $post->ID); ?></p>
<p class="price__text"><?php the_field('text1', $post->ID); ?></p>
<span class="q"><?php the_field('text2', $post->ID); ?></span>
<p class="price__text instruct-btn-pohor"><?php the_field('text3', $post->ID); ?><a> Подробнее...</a></p>
<div class="instruct-text-pohor"><?php the_field('text', $post->ID); ?></div>
<div class="price__uslug-all">
<div class="price__uslug-text">Цена услуги</div>
<div class="price__uslug"><?php the_field('price', $post->ID); ?> рублей</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- END OF SERVICE -->
<?php get_footer();?>
$posts = get_posts(array('post_type' => 'ray_tipov_simple'));
foreach($posts as $post)
array('id' => $_GET['post_id']) ; // это не как надо, это я к примеру.