Title: Page navigation by menu
Author: Lovro Hrust
Published: <strong>8 juli 2022</strong>
Last modified: 5 december 2025

---

Plugins zoeken

![](https://s.w.org/plugins/geopattern-icon/page-navigation-by-menu.svg)

# Page navigation by menu

 Door [Lovro Hrust](https://profiles.wordpress.org/lovor/)

[Download](https://downloads.wordpress.org/plugin/page-navigation-by-menu.zip)

 * [Details](https://nl.wordpress.org/plugins/page-navigation-by-menu/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/page-navigation-by-menu/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/page-navigation-by-menu/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/page-navigation-by-menu/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/page-navigation-by-menu/)

## Beschrijving

Plugin to support navigation by pages – similar to built in function the_posts_navigation()
for posts.
 Pages in navigation are filtered by provided menu (Primary menu by default)
and sorted in the same order as in menu. By default, main menu is used, but different
menu could be used by calling function for displaying with different menu as parameter.

### Disclaimer!

This plugin works only with classic themes. With FSE themes it will not work, since
it depends on classic menus.

### Usage

#### Basic

Just install and call `the_pages_navigation()` in your php template. There is also
a `get_the_pages_navigation()` function which returns string with same content.

Arguments to these functions could be supplied, all optional. * $menu – a menu ID,
slug, name, or object (WP_Term) for which to show pages * $start_position – start
position from which position in menu to start navigation ? $end_position – to which
position in menu to show navigation

#### Advanced

There are filters that can help to customize plugin output.

Change menu filter

    ```
    apply_filters('page_nav_menu', $default_menu)
    ```

Filters menu used for navigation.

 * $default_menu – a menu ID, slug, name, or object (WP_Term)

Arrow filters

    ```
    apply_filters( 'page_nav_left_arrow', $HTML )
    apply_filters( 'page_nav_right_arrow', $HTML )
    ```

Filters arrow output.

 * $HTML – HTML of arrow, coded as SVG, img or something else.

Filter output

    ```
    apply_filters( 'arrow_wrapper', $HTML_output, $left, $enabled, $output_image, $output_link, $output_div, $output_text )
    ```

Filters whole HTML output.

 * $HTML_output – as the name says
 * $left – output is for left side (previous)
 * $enabled – navigation on that side is enabled
 * $output_image – html of arrow image
 * $output_link – URL of link to which arrow leads
 * $output_div – wrapper of text besides arrow
 * $output_text – text besides arrow

#### Examples of filtering

    ```
    add_filter( 'page_nav_left_arrow', function() {
        return '<svg width="53" height="32" viewBox="0 0 53 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M51.77 15.994H1M16.622 31L1 15.998 16.622 1v30z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
    } );
    ```

## Installatie

Standard installation procedure – from repository or downloaded zip file. Plugin
does not have settings or admin part.
 It does not store any information in database
nor in file system. Use hooks in code for customizing.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“Page navigation by menu” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ Lovro Hrust ](https://profiles.wordpress.org/lovor/)

[Vertaal “Page navigation by menu” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/page-navigation-by-menu)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/page-navigation-by-menu/),
haal de [SVN repository](https://plugins.svn.wordpress.org/page-navigation-by-menu/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/page-navigation-by-menu/)
via [RSS](https://plugins.trac.wordpress.org/log/page-navigation-by-menu/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

 * Fixed error when first parameter in *pages_navigation functions is not given

#### 1.0.1

 * Fix PHP errors if FSE theme is active

#### 1.0.0

 * Initial version

## Meta

 *  Versie **1.1.1**
 *  Laatst geüpdatet **11 maanden geleden**
 *  Actieve installaties **Minder dan 10**
 *  WordPress versie ** 4.9 of nieuwer **
 *  Getest t/m **6.9.11**
 *  PHP versie ** 5.6 of nieuwer **
 *  Taal
 * [English (US)](https://wordpress.org/plugins/page-navigation-by-menu/)
 * Tags
 * [menu](https://nl.wordpress.org/plugins/tags/menu/)[navigation](https://nl.wordpress.org/plugins/tags/navigation/)
   [next](https://nl.wordpress.org/plugins/tags/next/)[page](https://nl.wordpress.org/plugins/tags/page/)
   [previous](https://nl.wordpress.org/plugins/tags/previous/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/page-navigation-by-menu/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Je beoordeling](https://wordpress.org/support/plugin/page-navigation-by-menu/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/page-navigation-by-menu/reviews/)

## Bijdragers

 *   [ Lovro Hrust ](https://profiles.wordpress.org/lovor/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/page-navigation-by-menu/)