=== AddonLogic Conditional Menu by Page ===
Contributors: snehalpancholi
Tags: menu, navigation, conditional, dynamic menu, page-specific menu
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically swap which navigation menu displays in any theme location based on the current page, post type, category, tag, or user role.

== Description ==

AddonLogic Conditional Menu by Page lets you define rules that replace any registered navigation menu location with a different menu depending on where the visitor is:

* Show a **shop menu** when browsing WooCommerce pages.
* Show a **members menu** when a user is logged in.
* Display a **campaign landing nav** on a specific page.
* Render a **blog sidebar nav** on category archives.
* Show a **minimal 404 menu** on error pages.

Rules are evaluated in order; the first match wins. No template edits required.

**Supported Conditions:**

| Condition | Matches |
|-----------|---------|
| Specific Page | A page by ID or slug |
| Post Type | Any singular of the given post type, or its archive |
| Category | Category archive pages and posts in that category |
| Tag | Tag archive pages and posts with that tag |
| Front Page | The static front page |
| Blog / Posts Page | The posts index |
| Any Archive | Any archive (category, tag, date, author, CPT archive) |
| Search Results | The search results page |
| 404 Page | The 404 error page |
| Logged-in Users | Any page when the visitor is logged in |

== Installation ==

1. Upload `conditional-menu-by-page` to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Settings → Conditional Menu** to add rules.

== Changelog ==

= 1.0.0 =
* Initial release.

== FAQ ==

= Will this conflict with my theme's menu assignments? =
No. The plugin filters `wp_nav_menu_args` only when a matching rule is found. If no rule matches, the theme's default menu assignment is used.

= What if two rules match the same location? =
Rules are evaluated top-to-bottom. The first match wins. Drag rules to reorder them (future feature).
