Initial commit
This commit is contained in:
21
category-events.php
Normal file
21
category-events.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
get_header(); ?>
|
||||
<?
|
||||
$posts = get_post_query('post', 10,'ASC', '', get_queried_object()->slug);
|
||||
|
||||
?>
|
||||
<div class="content-middle articles-wrapper">
|
||||
<?php get_template_part('partials/rubrics-mobile'); ?>
|
||||
<div class="section-title border-top">
|
||||
<h1 class="section-title__title"><?= get_queried_object()->name ?></h1>
|
||||
</div>
|
||||
<div class="articles-preview">
|
||||
<? get_template_part('content-category-events-post', null, ['posts' => $posts, 'category'=> get_queried_object()->term_id])?>
|
||||
</div>
|
||||
<?php custom_pagination($posts); ?>
|
||||
<a href="<?= home_url(); ?>" class="articles-preview__show-next">На главную</a>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
get_footer(); ?>
|
||||
Reference in New Issue
Block a user