update theme
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
Template Name: Шаблон страницы рекламодателей
|
||||
*/
|
||||
|
||||
$advertisers = get_post_query('advertiser', 10, 'ASC', '');
|
||||
$advertisers = new WP_Query([
|
||||
'post_type' => 'advertiser',
|
||||
'posts_per_page' => 10,
|
||||
'orderby' => 'date',
|
||||
'order' => 'ASC'
|
||||
]);
|
||||
|
||||
?>
|
||||
|
||||
@@ -14,9 +19,9 @@ $advertisers = get_post_query('advertiser', 10, 'ASC', '');
|
||||
<h1 class="section-title__title"><?= the_title() ?></h1>
|
||||
</div>
|
||||
<div class="articles-preview">
|
||||
<? get_template_part('content-advertiser', null, ['advertiser' => $advertisers])?>
|
||||
<? get_template_part('content-advertiser', null, ['advertiser' => $advertisers]) ?>
|
||||
</div>
|
||||
<a href="<?= home_url()?>" class="articles-preview__show-next">На главную</a>
|
||||
<a href="<?= home_url() ?>" class="articles-preview__show-next">На главную</a>
|
||||
<div class="articles__spacer-container">
|
||||
<div class="articles__spacer"></div>
|
||||
<div class="articles__spacer"></div>
|
||||
@@ -24,4 +29,4 @@ $advertisers = get_post_query('advertiser', 10, 'ASC', '');
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer(); ?>
|
||||
get_footer(); ?>
|
||||
Reference in New Issue
Block a user