BACK TO DIRECTORY

Author: António Andrade

by antonioandra.de

4.0
(6 ratings)

WP Table of Paginated Contents handles naming of each post page and produces a Table of Contents.
It uses the native <!--nextpage--> tag but adds a shortcode to store section titles.

Check the screenshots for a clearer idea.

Features:

  • Naming of each post page;
  • Output or generation of a Table of Contents (using a list or a drop down menu);
  • Output or generation of next/prev post pages navigation, using the section titles.

Suggestions are welcome and please report any bugs found!

Usage

This plugin provides two main methods to be used within the loop (https://codex.wordpress.org/The_Loop).

To echo the table of contents:

To echo the next/prev navigation links:

Usage Examples

To output the Table of Contents use the following snippet, inside your post loop:

<?php if( function_exists( 'wptopc' ) ){ wptopc(); } ?>

Alternatively you may output the Table of Contents as a drop down menu using the snippet:

<?php if( function_exists( 'wptopc' ) ){ wptopc("select", "The Post Table of Contents"); } ?>

To output a next/prev navigation with the section titles, use the following snippet, inside your post loop:

<?php if( function_exists( 'wptopc_pagination_links' ) ){ wptopc_pagination_links(); } ?>

To store the output of these functions prefix them with “get_”, like in:
get_wptopc()
or
get_wptopc_pagination_links()

Screenshots

The TinyMCE button.

The TinyMCE button.

The naming prompt.

The naming prompt.

The outputs (check the usage section).

The outputs (check the usage section).

Plugin Details

Active Installs
70
Total Downloads
12,437
Version
2.1
Requires WP
2.7
Requires PHP
Tested Up To
4.4.34
Added
2012-03-26
Last Updated
2015-12-19 4:04pm GMT

Ratings

5
4
4
0
3
0
2
2
1
0