[Plugin: Navigable] invalid argument when i into category
-
Hello!
I use this
<?php $nav = new NavigableWP(‘My nav menu’); ?>
<?php if ($sub_nav = $nav->current_subnav()): ?>
<?php foreach ($sub_nav as $elem): ?>
<?php echo $elem->title; ?>
<?php endforeach; ?>
<?php endif; ?>And work fine but when current is a category i get this
Warning: Invalid argument supplied for foreach() in Z:\home\fujitsu-hp.ru\www\wp-content\plugins\navigable\class-nav.php on line 163
My nav menu have page and category inside, and i want to make current menu (suv nav tree).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[Plugin: Navigable] invalid argument when i into category’ is closed to new replies.