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

“Static” Child Menu with Accordian

I’ve figured this out. I think one of the examples in the WordPress Codex is supposed to be the solution but simply doesn’t work. Here is what worked for me: <?php if ($post->post_parent) { $ancestors=get_post_ancestors($post->ID); $root=count($ancestors)-1; $parent = $ancestors[$root]; } else { $parent = $post->ID; } $children = wp_list_pages(“title_li=&child_of=”. $parent .”&echo=0″); if ($children) { ?> … Read more

Add Menu Item in Specific Order

I am going to use this workaround. Add a menu link with wp-login.php and replace the Title/URL. if ( !class_exists( ‘HijackMe’ ) ) { class HijackMe { public function hijack_menu($objects) { /** * If user isn’t logged in, we return the link as normal */ if ( !is_user_logged_in() ) { return $objects; } /** * … Read more

Automatically add child pages to menu

There are two possible approaches you can take. One would be to hook into whenever a Page is published and write code to update the menu accordingly, effectively making something similar to the built-in “add top level pages” functionality. You’d need to think carefully about what you would like to happen when the Page parent … Read more

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