
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:
Suggestions are welcome and please report any bugs found!
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()
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.