Override function _page_level_out()
At my site http://www.jasonbainbridge.com I have been using a hack to display a CSS dropdown menu with a calll to wp_list_pages() but to get this to work I had to hack the function _page_level_out in template-functions-post.php, which I don’t really like doing and have been trying to think of a cleaner way to do it.
At first I thought instead of calling wp_list_pages I’d create my own function jb_cssmenu_wp_list_pages (or similar depending on what the standard is) in a seaprate file as part of a plugin or theme but it isn’t that function I’m modifiying it is the underlying _page_level_out function so I’m a little stumped on the best practice here.
I am trying to prepare things so I can move over to upgrading via SVN without needing manual intervention and this is the last thing in the way of that so any guidance would be much appreciated! 🙂
- The topic ‘Override function _page_level_out()’ is closed to new replies.