Support » Plugin: Table of Contents Plus » IDs not added to titles when using toc_get_index()

  • I´m trying to include the TOC in the sidebar of my theme, using toc_get_index(); (in a custom page template).

    The TOC itself appears, but the id´s are not added to the titles. Even when I place the function in the loop and before the_content() is called the id´s are not included in the titles.

    In its simplest form, this is what I´m using within the loop:

    <div class="entry-content">
    
    	<h1><?php the_title(); ?></h1>
    
    	<?php
    	$toc = toc_get_index();
    	echo $toc;
    	?>
    
    	<?php the_content(); ?>
    
    </div><!-- .entry-content -->

    What am I doing wrong?

    https://wordpress.org/plugins/table-of-contents-plus/

  • The topic ‘IDs not added to titles when using toc_get_index()’ is closed to new replies.