Custom Text Under Navigation Links

Yes, but you need to use a custom walker. You must modify the function that traverse the page and output the HTML. Extend the basic wordpress class and implement your function. See this stackechange post for a code example. Note: I suggest you to use wp_nav_menu (custom menus) instead of wp_list_page and use the item … Read more

locate_template with multiple categories?

The code you posted is looping through all the categories that the post is assigned. The foreach constructs a string representing every possible template file that it wants to check for and assigns them all to $template. The locate_template() function will go through the $templates array and return the first one of them that actually … Read more