<?php the_field('image');?>
<?php the_field('image' , $cat);?>
<div class="faq-wrapper">
<?php $term = get_queried_object(); ?>
<div class="faq-col col">
<?php if (have_rows('faq', $term)): ?>
<?php while (have_rows('faq', $term)) : the_row(); ?>
<div class="faq-item">
<h4 class="faq-title">
<?php the_sub_field('question'); ?>
</h4>
<p class="faq-content">
<?php the_sub_field('answer'); ?>
</p>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="picture">
<img src="<?php bloginfo('template_url')?>/images/dest/faq.png" alt="">
</div>
</div>
.container-fluid {
width: 100%;
margin: auto;
max-width: 1980px;
}
.container {
max-width: 1200px;
margin: auto;
padding-left:15px;
padding-right: 15px;
}
.container.content {
padding: 120px 0 0;
}
.container-fluid.content {
padding: 120px 0 0;
}
.row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.col {
display: flex;
flex-direction: column;
}
.align-center {
align-items: center;
}
.space-between {
justify-content: space-between;
}
.space-around {
justify-content: space-around;
}
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/css/new-header.css" type="text/css"/>
// правильный способ подключить стили и скрипты
add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
// add_action('wp_print_styles', 'theme_name_scripts'); // можно использовать этот хук он более поздний
function theme_name_scripts() {
wp_enqueue_style( 'style-name', get_stylesheet_uri() );
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}