Title: insert using shortcode
Last modified: March 3, 2022

---

# insert using shortcode

 *  Resolved [gatta2](https://wordpress.org/support/users/gatta2/)
 * (@gatta2)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/insert-using-shortcode-2/)
 * I’m using the code `echo do_shortcode('[ez-toc]');` to put the table of content
   directly in the template. I found that I need to enable auto insert or the headings
   won’t have the id added to them then the anchor links won’t work. Is this normal?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15468033)
 * May I know where exactly did you added the shortcode,
 * Can you pls share the photo?
 *  Thread Starter [gatta2](https://wordpress.org/support/users/gatta2/)
 * (@gatta2)
 * [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15470763)
 * It’s in the content.php of a twentytwelve child theme.
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15474657)
 * Can you please share the content.php file via pastebin?
 *  Thread Starter [gatta2](https://wordpress.org/support/users/gatta2/)
 * (@gatta2)
 * [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15481927)
 * [https://pastebin.com/f8UU1jPA](https://pastebin.com/f8UU1jPA)
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15502852)
 * This may be a bug so I have created a ticket for the testing on [https://github.com/shazahm1/Easy-Table-of-Contents/issues/147](https://github.com/shazahm1/Easy-Table-of-Contents/issues/147)
 * If it gets recreated, we will solve it in the upcoming updates.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘insert using shortcode’ is closed to new replies.

 * ![](https://ps.w.org/easy-table-of-contents/assets/icon-256x256.png?rev=3045459)
 * [Easy Table of Contents](https://wordpress.org/plugins/easy-table-of-contents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-table-of-contents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-table-of-contents/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [Magazine3](https://wordpress.org/support/users/magazine3/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/insert-using-shortcode-2/#post-15502852)
 * Status: resolved