Need to resolve “current_page_item” on categories
-
here is my top pagination code, home to advertise are pages, and other categories, when i click on page current_page_item css working perfectly, but now working on categories, any one plz solve my code for my categories links on top nevigation
Thanks in advance
<div id=”nav”>
-
<li class=”<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>”>“>Home<?php echo $langblog;?>
<?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>
<?php wp_list_categories(‘sort_column=menu_order&depth=1&title_li=’); ?></div>
- The topic ‘Need to resolve “current_page_item” on categories’ is closed to new replies.