Replace Menu Item with Logged in username

you can do it with jQuery, but you’ll need to find that menu item’s class or ID. Here’s an example: <?php global $display_name; get_currentuserinfo(); ?> <script> jQuery(document).ready(function($) { $(‘.your-class a’).text(‘<?php echo $display_name;?>’); }); </script>

How to output the menue structured for tabbed navigation?

What a pitty that nobody responded. I had a hard way checking the walker class first before I found out that it’ll be much easier with wp_get_nav_menu_items() This is what I came up with. Not perfect but it works (only two levels which is enought for my page). $menu_name=”primary”; if ( ( $locations = get_nav_menu_locations() … Read more

How to accomplish a child page navigation?

I’m outlining a solution for you, it uses get_children to determine if there are any, then conditionally sets up the post id $p_id for the child_of parameter, so that the list of child pages from a certain parent always can be shown, by making use of wp_list_pages(). Code: function wpse125273_child_page_nav() { global $post; $args = … Read more

Menu not always using correct link

It appears that all of the links inside that menu are custom menu links, based on the classes “menu-item-type-custom” & “menu-item-object-custom”. You should be able to go into the menu and put whatever you want in the url field. If you are using hash links (#team) and may have to put the full url http://angrychickenmedia.com.au/#services … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)