get_header(); ?>
<div class="background-type-2">
<div class="main-content">
<div class="line-ver">
<div class="wrapper">
<?php get_sidebar('blog'); ?>
<div id="container">
<div id="content" class="blog" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>"<?php post_class(); ?>>
<div class="post_headline">
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
</div>
<div class="post-exp">
<?php the_excerpt(); ?>
</div>
<div class="tags">
<?php var_dump(get_the_terms( $post->id, 'post_tag' ));?>
</div>
</article>
<?php endwhile;
if (function_exists('custom_pagination')) {
custom_pagination($query->max_num_pages,"",$paged);
}
endif;
?>
</div><!-- #content -->
</div><!-- #container -->
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
while(have_posts()) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post_headline">
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
</div>
</article>
<?php
endwhile;
the_posts_pagination();
$args = [];
global $wp_query;
$wp_query = new WP_Query($args);
if(function_exists('bcn_display'))
{
function action_bcn_after_fill( $breadcrumbs ) {
foreach($breadcrumbs->breadcrumbs as $breadcrumb) {
if (in_array('home', $breadcrumb->type)) {
$front_id = get_option('page_on_front');
$home_title = get_the_title($front_id);
$breadcrumb->set_title($home_title);
break;
}
}
};
add_action( 'bcn_after_fill', 'action_bcn_after_fill', 10, 1 );
}
get_sub_field('link');
Но на скрине у вас только 3 поля. И зачем так мудрить? Создайте поле типа "Взаимоотношение" , выберете типы материалов и поставьте ограничение на количество. И в поле вы будете получать объекты постов, а из них уже вытяните и название и миниатюру и ссылку.