Home Subscribe to this site with an RSS reader Search this site Contact Likoma Uh, a little help here, please?

Navigo

By Bradley Charbonneau | Filed under Help, Plugins, WordPress

Business Capital has a nice horizontal menu with drop-downs. Most of them are just (parent) pages with children and then grandchildren. Fine, good, works fine. But either it was a glitch or just too late at night, but when on a sibling page, the drop-downs for that parent no longer dropped down. Hmm. Tried some template tag tricks to no avail. Did a bit of a plugin search and came across Navigo.

That worked, the drop-downs worked, but the only thing that didn't work was the parent showing up. A bit of lucky tweaking and I manually put in the parent name and a manual absolute URL and it worked! Here's my Navigo code as embedded in the header:

PHP:
  1. <li><?php if(function_exists('navigo')) navigo('child_of=5&sort_column=menu_order&title_li='); ?><a href="http://www.bizcap.com/about/">About Us</a></li>

The original Navigo code just didn't have that parent link:

CODE:
  1. <li><?php if(function_exists('navigo')) navigo('child_of=5&sort_column=menu_order&title_li='); ?></li>

I added the bullet tags so it worked with the rest of the nav bar.

Leave a Comment