1. Home
  2. How To
  3. How to add TOC with shortcode

How to add TOC with shortcode

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.

Updated on April 26, 2022

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.


    Was this article helpful?

    Related Articles

    Need Support?
    Can’t find the answer you’re looking for? Don’t worry we’re here to help!
    Contact Support
    Translate »