We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@menu
1 parent cb34494 commit a58a9e2Copy full SHA for a58a9e2
docs/usage/wordpress.md
@@ -544,3 +544,13 @@ It comes with two assisting directives `@hassidebar` and `@endhassidebar` that c
544
@thememod('header-bg-color')
545
@thememod('header-bg-color', '#fff')
546
```
547
+
548
+## @menu
549
550
+`@menu` allows you to easily call `wp_nav_menu()` and is typically wrapped in `@hasmenu` and `@endhasmenu`.
551
552
+```php
553
+@hasmenu('primary_navigation')
554
+ @menu(['theme_location' => 'primary_navigation'])
555
+@endhasmenu
556
+```
0 commit comments