2017 © Pedro Peláez
 

wordpress-plugin wp-nav-helper-page-sections

image

nathanielks/wp-nav-helper-page-sections

  • Thursday, August 11, 2016
  • by nathanielks
  • Repository
  • 3 Watchers
  • 5 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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)

  1. There's a field with a Field Name of page_sections that is a Repeater field.
  2. page_sections 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' sanitize_title function. The link will include the url of the page, so you can link to other pages., (*2)

You will also need to add that id property to the section on the page. Let's use this loop for an example:, (*3)



<section class="page-section section-<?php echo $title_slug; ?>" id="<?php echo $title_slug; ?>">

    <?php // Content stuff here    ?>

</section> 


Screenshots

ACF Field Group

screenshot4, (*4)

screenshot1 screenshot2 screenshot3, (*5)

The Versions

11/08 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Nathaniel Schweinberg

11/08 2016

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Nathaniel Schweinberg