add new logic rubrics
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
<?php
|
||||
$categories = get_categories(array(
|
||||
'exclude' => get_expression_parts(),
|
||||
'orderby' => 'name',
|
||||
'order' => 'ASC',
|
||||
'hide_empty' => false
|
||||
));
|
||||
|
||||
|
||||
$firstElement = array_shift($categories);
|
||||
array_push($categories, $firstElement);
|
||||
// Получаем текущие рубрики из меню
|
||||
$categories = get_categories_from_menu_exact_order('rubrics');
|
||||
|
||||
foreach ($categories as $category) {
|
||||
if ($category->slug === 'uncategorized') continue;
|
||||
|
||||
Reference in New Issue
Block a user