navi
navi copied to clipboard
A developer-friendly alternative to the WordPress NavWalker.
FYI after upgrading to PHP 8.1. I started seeing these deprecation notices: >Return type of Log1x\Navi\Navi::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be...
See https://github.com/Log1x/navi/issues/54
Polylang uses the same IDs on dropdown menus as the parent - just with a suffix: ``` +"id": "343-en" +"label": "EN" +"objectId": "343" +"parent": 343 ``` This caused an endless...
Hello ! It's weird, when adding the WooCommerce's shop page in my menu, the item returned by navi has 'active' set to false when I am on the shop page....
Hi! This is more of a feedback/idea than an issue. I wanted to share how I managed to have navi working with widgets, so that maybe you could include it...
Changes proposed in https://github.com/Log1x/navi/issues/69
Hey. Great library. Any chance of adding `type` and `object` properties to the [list of attributes](https://github.com/Log1x/navi/blob/master/src/MenuBuilder.php#L19) so they get passed down from the original menu `WP_Post` object? I'm working on...
Hi, In the readme's [example output](https://github.com/Log1x/navi#example-output), the array's keys and "id" values match, and correspond to the ID of the menu item created in WP. In the example, it starts...
I'm using Navi to build my main menu. In this menu there is the regular Blog menu and also a menu corresponding to a CPT. The problem is when I'm...
I'm using Navi to render 2 menus in the header - one is a submenu for various photo albums when the user selects *Photographs* in the main menu. My problem...