/
category-7.php
51 lines (39 loc) · 1.79 KB
/
category-7.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php get_header();?>
<div class="content">
<div class="navline">
<div class="contain">
<div class="navline__bg"></div>
<div class="navline__contain">
<?php if( function_exists('kama_breadcrumbs') ) kama_breadcrumbs(' → '); ?>
</div>
</div>
</div>
<div class="contain">
<section class="recipes">
<!-- Имеются ли посты для отображения? -->
<?php if ( have_posts() ) : ?>
<!-- Цикл вывода постов -->
<?php while ( have_posts() ) : the_post(); ?>
<div class="recipes__block">
<div class="recipes__block__thumb">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('full', array('class'=>'new-img-pr'));; } ?>
</div>
<div class="recipes__block__content">
<h2>
<?php the_title(); ?>
</h2>
<a href="#nowhere" class="soc__repost__fb">73</a>
<a href="#nowhere" class="soc__repost__vk">671</a>
<a href="#nowhere" class="soc__repost__tw">75</a>
<a href="<?php the_permalink() ?>" class="toRecipe">Перейти к рецепту</a>
</div>
</div>
<?php endwhile; // конец цикла?>
<div style="text-align:right; width: 100%; padding-left: 60px">
<?php my_pagenavi() ?>
</div>
<?php endif; ?>
</section>
</div>
</div>
<?php get_footer(); ?>