Skip to content

Commit b71d4ba

Browse files
committed
readme
1 parent 66e0d10 commit b71d4ba

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ACF Menu Field
22

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.
44

55
## Installation
66

@@ -19,4 +19,6 @@ Wordpress
1919

2020
Timber (timber.php, page.php, etc..)
2121

22-
where
22+
```php
23+
$context['custom_menu'] = new Timber\Menu(get_field('custom_menu'));
24+
```

0 commit comments

Comments
 (0)