Initial commit
This commit is contained in:
17
front-page.php
Normal file
17
front-page.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php get_header(); ?>
|
||||
<div class="content-middle articles-wrapper">
|
||||
<?php get_template_part('partials/rubrics-mobile'); ?>
|
||||
<div class="articles-preview">
|
||||
<?php
|
||||
$args = array(
|
||||
'post_type' => 'post', // Или ваш пользовательский тип постов, если необходимо
|
||||
'posts_per_page' => 10, // Количество постов на странице
|
||||
'cat' => [-17, -20, -21]
|
||||
);
|
||||
$query = new WP_Query($args);
|
||||
?>
|
||||
<?php get_template_part('partials/post-list', null, ['large_first_image' => false, 'query' => $query]); ?>
|
||||
</div>
|
||||
<button class="articles-preview__show-next">Загрузить еще</button>
|
||||
</div>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user