PHP code example of nathanielks / wp-nav-helper-page-sections

1. Go to this page and download the library: Download nathanielks/wp-nav-helper-page-sections library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nathanielks / wp-nav-helper-page-sections example snippets



// check if the repeater field has rows of data
if( have_rows('page_sections') ):

 	// loop through the rows of data
    while ( have_rows('page_sections') ) : the_row();

    $title_slug = sanitize_title(get_sub_field('title'));