wordpress have_posts() Как получить id записи и мета-поле (дополнительно поле)

Например, так:

$smiLink = get_post_meta(get_the_ID(), 'prefix-smi_source_link', true);

В контексте:

if ($custom_post_type->have_posts()) :
	while ($custom_post_type->have_posts()): $custom_post_type->the_post();
			$smiLink = get_post_meta( get_the_ID(), 'prefix-smi_source_link', true);
			vpre($smiLink);
		?>
		<h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2>

		<p> <?php the_modified_date();
echo ", ";
the_modified_time() ?></p>
		<p> <?php the_excerpt() ?></p>
	<?php
	endwhile;
endif;

Key Words for FKN + antitotal forum (CS VSU):