add_filter( 'woocommerce_get_price_html', 'custom_price_html', 100, 2 );
function custom_price_html( $price, $product ){
//ваш код по изменению вывода цены
}
$attachments = get_children(array('post_parent' => $post->ID,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ID'));
$arrKeys = array_keys($attachments);
$iNum = $arrKeys[1];
$imgUrl = wp_get_attachment_url($iNum);
}
$attachments = get_children(array('post_parent' => $post->ID,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ID'));
$arrKeys = array_keys($attachments);
$iNum = $arrKeys[0];
$imgUrl = wp_get_attachment_url($iNum);
}
<?php $i = 0; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="col-md-<?php echo ($i < 2)? '6' : '4'; ?>">
<div class="services-item">
<div class="img">
<img src="<?php bloginfo('template_url'); ?>/img/archive.png" alt="archive">
<span class="price">
<?php the_field('стоимость');?> P
</span>
</div>
<div class="information">
<h3>
<?php echo get_the_title(); ?>
</h3>
<p>
<?php echo get_the_content(); ?>
</p>
</div>
</div>
</div>
<?php $i++; endwhile; ?>
<?php endif; ?>