Answer the question
In order to leave comments, you need to log in
How to make a transition through navigations (categories)?
There are custom categories (there are several of them)
<ul class="two__ul">
<?php
$categories = get_categories( [
'orderby' => 'include',
'order' => 'ASC',
'style' => 'list',
'show_count' => 0,
'hide_empty' => 1,
'child_of' => 0,
'exclude' => '',
'include' => '4,5,6,7,8,9,10',
'hierarchical' => true,
'title_li' => __( '' ),
'number' => NULL,
'echo' => 1,
'depth' => 0,
'pad_counts' => 0,
'taxonomy' => 'category',
'walker' => 'Walker_Category',
] );
if( $categories ) {
foreach( $categories as $cat ) {
?>
<li class="tu__li">
<a class="nav-link "
href="<?php echo get_category_link($cat->term_id); ?>"
>
<?php echo $cat->name; ?>
</a>
</li>
<?php
}
}
?>
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question