You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b71d4ba
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ACF Menu Field
2
2
3
-
Adds a WP menu selector custom field type to [ACF](https://www.advancedcustomfields.com/). Will list all available WP menus and return the selected menu's slug.
3
+
Adds a WP menu selector custom field type to ACF. Will list all available WP menus and return the selected menu's slug.
4
4
5
5
## Installation
6
6
@@ -19,4 +19,6 @@ Wordpress
19
19
20
20
Timber (timber.php, page.php, etc..)
21
21
22
-
where
22
+
```php
23
+
$context['custom_menu'] = new Timber\Menu(get_field('custom_menu'));
0 commit comments