|
|
@ -13,6 +13,7 @@ function get_posts_by_page_and_category($paged = 1, $category = '') { |
|
|
|
'post_type' => 'post', |
|
|
|
'post_type' => 'post', |
|
|
|
'posts_per_page' => 9, // Adjust the number of posts per page |
|
|
|
'posts_per_page' => 9, // Adjust the number of posts per page |
|
|
|
'paged' => intval($paged) + 1, |
|
|
|
'paged' => intval($paged) + 1, |
|
|
|
|
|
|
|
'post_status' => 'publish', // Только опубликованные записи |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($category)) { |
|
|
|
if (!empty($category)) { |
|
|
|