Is there anyway to order the sub navigation other than alphabetically?
Yes you can, by using the
Adding that code took down the site. (Completely blank page, no error message)
I’d have to see your functions.php file, but my guess is you added <?php when it wasn’t needed. That’s only needed at the very top of your php file, or if you’ve used the closing php tag ( ?> ). More information on PHP open/close tags: http://www.untwistedvortex.com/2010/12/10/php-programming-beginners-php-open-close-tag-set-programming-display/
I’ve tested the code and it worked fine on my site.
Bill Erickson, you are a genius. Putting the secondary navigation in the sidebar is an integral part of 75% of my sites. Your plugin works perfectly! Trouble is, it’s ordering the pages alphabetically. I added the above code to the functions.php file of my child theme and nothing is broken, but pages are still ordered alphabetically. Any chance you can help with a solution that orders them according to something in my control? Thanks in advance for your help.
Hmm, that code should work for everyone.
Have you put it into your theme’s functions.php file?
Do you have any other plugins that might be interacting/overriding the default WordPress query?
The subpages are ordered alphabetically by name still. How dose this code change that? How should they be ordered once this code is added? I guess I’m not clear on that. Thanks much for your assistance!
- The topic ‘[Plugin: Genesis Subpages as Secondary Menu] Ordering Sub Navigation’ is closed to new replies.