-1,
‘post_type’ => ‘reviews’,
‘meta_query’ => array(
array(
‘key’ => ‘excursion’,
‘value’ => get_the_ID()
),
)
) );

if( !empty( $reviews ) ){
echo ‘

Отзывы

‘;
foreach( $reviews as $review ){ ?>

post_title; ?>
post_content; ?>

‘author’,
‘value’ => $author->ID
)
);

$excurtions = get_posts( array(‘post_type’ => ‘excursions’, ‘numberposts’ => 6, ‘meta_query’ => $meta_query) );

if( $excurtions ){
?>

Экскурсии этого автора

ID, ‘thumbnail’ ); ?>» class=»thumb» alt=»post_title ?>» />