Gulp.js
1
Вклад в тег
<?php
$args = array(
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
'post_type' => 'post',
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
);
query_posts( $args );
while ( have_posts() ) {
the_post();
?>
<article class="blog__post">
<div class="blog__minicard">
<h2 class="blog__minicard_title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<div class="post-meta">
<time class="post__date" datetime="<?php the_time('F j, Y'); ?>"><?php the_time('F j, Y'); ?></time>
</div>
<div class="blog__minicard_content">
<div class="blog__minicard_images">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('post-thumb'); ?></a>
</div>
<?php the_excerpt(); ?>
</div>
</div>
<div class="blog__tab_line"></div>
</article>
<?php
} ?>
<?php
the_posts_pagination(); ?>
<?php
wp_r
eset_query();$terms = get_terms( array(
'taxonomy' => 'tipuslugi',
) );
foreach( $terms as $term ) :
echo '<li class="s-services__controls_item"><a class="s-services__controls_link"
href="'.$term->slug.'" title=" '.$term->name. '">'. $term->name . '</a></li>';
endforeach;