We have the option to add the TOC with the shortcode – “” with this shortcode you can easily add the TOC in the content or anywhere in the WordPress and if you want to add the shortcode on the theme file then you can add it with the help of this code –<?php echo do_shortcode( ‘’ ); ?>and with this, you can add the TOC on any file according to you need.
Step 1: First, you need to install and activate our Easy Table of Contents plugin.
Step 2: After that go to the WordPress dashboard and edit the post in which you want to display the Table of Contents on a specific Post/Page. “” with this shortcode you can easily add the TOC in the content or anywhere in the WordPress copy the shortcode and place where you want to display.

The Output of TOC with shortcode

That’s it for this tutorial!
We hope we’ve cleared your doubts in case you have any feedback or questions, then please share them in the comments section below.
Or you Just contact us here and we are always available for you.