WP Nav Helper - Page Sections
Adds nav helper on menu page to link to sections of a page
by Nathanel Schweinberg · github.com/nathanielks/wp-nav-helper-page-sections
★ 4stars
17composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/nathanielks/wp-nav-helper-page-sections/archive/refs/heads/master.zipAlso on Packagist as nathanielks/wp-nav-helper-page-sections:
composer require nathanielks/wp-nav-helper-page-sectionsFrom the readme
WP Nav Helper - Page Sections
This plugin is designed to work with Advanced Custom Fields. It will allow you to select a page and then create links to a section on that page, assuming that page has ACF meta that follows a certain schema:
1. There's a field with a Field Name of pagesections that is a Repeater field.
1. pagesections Repeater field has any number of fields, one of them having a Field Name of title.
The plugin will create a link that includes a sanitized copy of the title. The title is passed through WordPress' sanitizetitle function. The link will include the url of the page, so you can link to other pages.
You will also need to add that id property to the section on the page. Let's use this loop for an example:
Screenshots
ACF Field Group
Nav Helper in action