Custom Taxonomy Showing in WP Menu
Custom Taxonomy Showing in WP Menu
Custom Taxonomy Showing in WP Menu
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
To display a menu you need to use the wp_nav_menu function (Codex reference). Try changing your template file to use the following code: <?php wp_nav_menu( array( ‘theme_location’ => ‘main-menu’ ) ); ?>
Multiple Plugins Interacting with Menu
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 the “.current-menu-item” class to tag?
How do I fix the URL used in the WordPress admin menu for customize.php
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
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
WooCommerce shows a listing of product categories at /products, which can be added to a menu as a simple link to that url. It took me a while to find that url. To override the categories page template, grab a copy of templates/content-product_cat.php from the WooCommerce repo and place it at woocommerce/content-product_cat.php in the child … Read more