у меня есть миниатюра поста и пост-контент на странице по коду ниже
<?php
$post_types = array('a', 'b','p','d','f');//post type names
foreach( $post_types as $post_type) {
// The Query
$the_query = new WP_Query( array(
'post_type' => $post_type,
'orderby' => 'post_date',
'order' => 'DESC'
));
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
?>
<?php endwhile; ?>
<?php }?>
Теперь я хочу получить значение настраиваемого поля из соответствующих сообщений.