How to use TOC (Table of Contents) shortcode

Hi,

I’ve been reading all kind of posts on this issue and I have used some the knowledge around there, but none of that have helped me achieve the beloved Table of Contents.

Can you please tell what I’m doing wrong? --> https://www.luiszarza.com/test/

I’m using this code:

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the first page here...

‹!--nextpage--›

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the second page here...

‹!--nextpage--›

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the third page here...

Please help.

PS: I already know this documentation and so many others and it won’t help.

Hi There @WP-rockstar

Thanks for writing in! I think it’s because of the arrows that you’re using for next tag is different.
Your one is ‹!--nextpage--› and it should be as follows <!--nextpage-->

Copy the exact code below and paste it into your WordPress editor’s text mode, and it should render correctly.

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the first page here...

<!--nextpage-->

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the second page here...

<!--nextpage-->

[toc type="left"]
[toc_item title="1. Introduction" page="1"]
[toc_item title="2. More Information" page="2"]
[toc_item title="3. Even More Information" page="3"]
[/toc]

...Content for the third page here...

Hope that helps.

Thanks!
Yes it did work!

Glad to know!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.