Excluded categories appear by "Show all"
-
Hello,
I have excluded some categories from the home page, which works fine by first loading the page.
But when I select “show all” once more, the exculded categories are shown again.
Should I changedata-filter="*"
? How?Thanks a lot.
The Test site:
The code:
<ul class="nav-listing clearfix"> <li><a href="#" data-filter="*" class="selected"><span></span><?php _e('Show All','sampression'); ?></a></li> <?php $args = array( 'exclude'=> array(8,9,10,11,12) ); $categories = get_categories($args); foreach($categories as $category): ?> <li><a href="javascript:void(0);" data-filter=".<?php echo $category->slug; ?>" id="<?php echo $category->slug; ?>" class="filter-data"><span></span><?php echo $category->name; ?></a></li> <?php endforeach; ?> </ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Excluded categories appear by "Show all"’ is closed to new replies.