WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Table of Paginated Contents

Handles naming of each post page through a TinyMCE button and produces a Table of Contents for the said post.

Usage

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

To echo the table of contents:

<?php wptopc($format="list|select", $prepend="", $append=""); ?>

To echo the next/prev navigation links:

<?php wptopc_pagination_links($prepend="", $append=""); ?>

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()

Requires: 2.7 or higher
Compatible up to: 3.3.2
Last Updated: 2012-7-1
Downloads: 5,025

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1