update theme
This commit is contained in:
@@ -3,8 +3,12 @@
|
||||
Template Name: Шаблон страницы партнёров
|
||||
*/
|
||||
|
||||
$partners = get_post_query('partners', 10, 'DESC', '');
|
||||
|
||||
$partners = new WP_Query([
|
||||
'post_type' => 'partners',
|
||||
'posts_per_page' => 10,
|
||||
'orderby' => 'date',
|
||||
'order' => 'DESC'
|
||||
]);
|
||||
?>
|
||||
|
||||
<?php get_header(); ?>
|
||||
@@ -35,5 +39,4 @@ $partners = get_post_query('partners', 10, 'DESC', '');
|
||||
<? custom_pagination($partners); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer(); ?>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user