>
Download This Plugin | |
Download Elegant Themes | |
Name | Menu Rules |
Version | 1.2.2 |
Author | Phill Brown |
Rating | 0 |
Last updated | 2012-12-17 10:44:00 |
Downloads |
3709
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Menu Rules plugin added 13 bytes of resources to the Home page and 60 bytes of resources to the sample Post page.
Menu Rules plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Menu Rules plugin ads no tables to your Wordpress blog database.This plugin has been replaced by Context Manager
Context Manager does the same job as Menu Rules, but comes with many more features to save you time and unnecessary coding.
Menu Rules can run alongside Context Manager while you migrate your rules across. Speak to me on Twitter if you need any help with the transfer.
In WordPress there's no way to apply context to the menu system. Menu Rules solves this problem and gives you a framework to write your own menu extensions.
You have an e-commerce website that has a custom post type called 'products'. You have a page that lists products which is listed in your main menu. A user visits the page and the menu item becomes 'active'. You click through to a product and the menu item loses its active state. This is how to fix it with menu rules:
is_singular( 'product' )
Menu_Rules_Handler
and includes a handler
method.add_action( 'plugins_loaded', create_function( '', 'Menu_Rules::register( "Your_Menu_Rule_Class" );' ) );
Built-in rules are found in menu-rules/rules/
If you're stuck, ask me for help on Twitter.