Should I use custom menu, C.P.T. or theme options, or something else for this?

On my website, I’ve used Custom Post Types to achieve a slightly more complex version of what you’re trying to do. My requirements were; Rich text on title JavaScript animation to flick between “Featured Items” (not covered here) Ability to edit the featured items easily from the back-end for admin users Ability to hyperlink the … Read more

Best way to customise wp_nav_menu [duplicate]

Please check out this similar question with two directions you could use to solve your problem: Adding html elements to wp nav menu I would try using either the wp_get_nav_menu_items() function or try using the ‘wp_nav_menu_items’ filter. An easier solution (If you do not want to do much coding) would be to use The Uber … Read more

How to add php to custom link in the nav menu? [closed]

You could do something like this: <?php if ( is_user_logged_in() ) { wp_nav_menu( array( ‘theme_location’ => ‘logged-in-menu’ ) ); } else { wp_nav_menu( array( ‘theme_location’ => ‘logged-out-menu’ ) ); } ?> EDIT: Here is another try, same theory but different execution: if ( is_user_logged_in() ) { // Filter wp_nav_menu() to add additional links and other … Read more

Create dropdown list post

Hey @Ruriko … its a 3 step action. get the current category ID get the posts for this specific category get the posts into a select menu Please note that this code would use the first category id altough you might assign several categories to the same post. . <?php // FIRST CATEGORY NAME $category … Read more

How to create a Menu based a username

As said in the comments, this depends on how many users there are and how different those menus are supposed to be. If there are just a few users and you want completely different menus for each of them, you would have to create different menus in the backend and the call them conditionally in … Read more

Get admin menu link

You can use admin_url(‘nav-menus.php’); This function can be used to get url’s for any admin screen, please check out the codex for more information http://codex.wordpress.org/Function_Reference/admin_url

Sidebar links for different pages

Register a new sidebar by pasting this into your theme’s functions.php file: register_sidebars( ‘id’ => ‘patientedu’ ); Create a file called sidebar-patientedu.php and paste the following into it: <?php if (is_active_sidebar(‘patientedu’)) : ?> <div id=”sidebar”> <h2>PatientEdu Sidebar</h2> <?php dynamic_sidebar(‘patientedu’); ?> </div> <?php endif; ?> Then paste this whereever you want your sidebar to show up: … Read more