adding some custom html code to the wp_nav_menu function

To add that last list item, you don’t need a custom Walker. There is a hook that will allow you to tack that on. function add_last_nav_item($items) { return $items .= ‘<li><a href=”#myModal” role=”button” data-toggle=”modal”>Contact</a></li>’; } add_filter(‘wp_nav_menu_items’,’add_last_nav_item’); It wouldn’t be start_el and end_el that you’d need to edit anyway. Those generate the individual list items. It … Read more

Query menu_order custom post types

I’ve just had to do the same thing as you, here is what I did to get this working: ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘page-attributes’) Register the post type with supports of page attributes. This adds the menu order meta box to the edit screen. From there you can place the order. Then run my … Read more

Link to Author archive from Navigation Menus in dashboard?

I don’t really understand why you want to use a menu to control this but it wouldn’t be very hard. First you obviously need a new page template for your grid which you will use get_users to pull your users for display – https://codex.wordpress.org/Function_Reference/get_users Now if you want to control the order and whom is … Read more

Custom Post Types posts as submenus in Nav Menu

Here’s an example on modifying a menu element to add things. In this example, a category item is extended to have a dynamically generated sub menu listing posts, where the menu item has a class of showposts-X where X is the number of posts to show: function menu_show_category_posts( $item_output=””, $item = ”, $depth=””, $args=”” ) … Read more

New post notification in wp_nav_menu

I would store a transient with a life-time of 24 hours when a post (in some category, I’m using category with ID 333 as an example) is published. Whenever subsequent posts are published, the transient is either updated or recreated if 24 hours has elapsed and the transient has been deleted. Logic Whenever a post … Read more