The Navigation Template

One feature in PublishPress Series is a Navigation strip that gets displayed with posts that are part of a series containing links to the next and previous posts in the series. This provides another way for users to click through to other posts in the series.


Introducing the Navigation Template #

This screenshot below shows an example of the navigation template with forward and back arrows.

Series Nav Shortcode Output
Series Nav Shortcode Output

Go to “Series” in your WordPress admin area and then click the “Templates” tab. You will be able to control how the series navigation strip is displayed using the “Series Navigation Box” options

Nav Options
Nav Options

You control the output by inserting various tokens, text, and HTML markup.

You can automatically insert the series navigation strip into your blog by using the %postcontent% token. In this image above, the %postcontent% token is before the rest of the template telling the plugin that you want the Series Navigation Strip to show up after the post-content.

Removing the %postcontent% token would keep your post content from displaying. If you don't want the series navigation strip to show up just remove everything except for the %postcontent% token.

%postcontent% controls automatic insertion into the full post page views of your blog theme (on is_single();pages).


Template tags and Functions for the Navigation #

Here are the details for customizing the template files:

  • wp_series_nav() – gets the links for previous OR next posts in a series. This function takes the arguments: series_ID.
  • wp_assemble_series_nav() – this calls the series navigation template and replaces all the %tokens% with the related series information.

For developers who want to dig more deeply into the code, detailed explanations are included in the orgSeries-template-tags.php file: