Login Logout Welcome message Uses WordPress functions and queries to pull user information with wp_get_current_user. Display the login/logout/register links...
Create menu and fill with links programatically create a navigation menu and pre add custom links with this WordPress code snippet....
Walker for wp_nav_menu showing descriptions The class Description_Walker extends Walker_Nav_Menu and changes the function start_el to look for $item->description.
Use wp_list_pages custom walker to show only post thumbnails In this example the project required the featured image thumbnail to display in the menu...
Customized function to list pages wp_list_pages() not supposed to have a title attribute by default. So we created our own...
Highlight menu item of wp_nav_menu on CPT The code below finds the menu item with the class "-menu-item" and adds another “current_page_parent”...
Build a WordPress and Bootstrap ready Menu An outstanding work from rootstheme. These functions drop all those post and menu classes, set...
Add Login Logout link to navigation This function adds custom links (i.e. login\logout links) to your specified navigation menu. Change 'primary_navigation'...
Pagination for WordPress and Bootstrap This is my most used pagination snippet. It's easy to read and to customize its...