Auto Filled Custom Menus for Custom Post Types?

I’m not quite clear on what you’re trying to do, but I’ll just take a shot in the dark. Try messing around with custom fields. You could have a custom field with a boolean value. Then in your template, you would check to see if the post has that value. So if that value returns … Read more

Change sub-menu css class

if you don’t want to use a custom menu walker, you can use the classes wp already puts out. If you add a class to the menu item you know will have a extra ul, you’ll have something like this <ul> <li class=”menu-item menu-item-1″>Item 1</li> <li class=”menu-item menu-item-2″>Item 2</li> <li class=”sub-1 menu-item menu-item-3″>Item 3 <ul … Read more

Second tier sidebar navigation

For now I have decided to use a CSS solution. I realized with the code above I do actually have classes I can work with. For example if you had this navigation in a you could use something like this. nav.sidebar li li li { display: none; } nav.sidebar li li.current_page_item > ul > li, … Read more

How to insert date in topNav

wp_nav_menu has a $container parameter that can be used to set the type of container (div or nav) or to disable it. You could set the parameter to false and hardcode the wrapper div whilst including a date inside of it: <!– BEGIN HEADER-TOP –> <div class=”navigation-wrap”> <?php wp_nav_menu( array( ‘theme_location’ => ‘topNav’, ‘depth’ => … Read more

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