Title: Doesnt count headers if generated by shortcode
Last modified: October 18, 2022

---

# Doesnt count headers if generated by shortcode

 *  [eimos](https://wordpress.org/support/users/eimos/)
 * (@eimos)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-count-headers-if-generated-by-shortcode/)
 * Hi again! I think it would be great if the plugin would take the headers from
   the generated HTML and not only from the_content, i mean, if you write for example
   a new <h2> by adding a custom shortcode in the_content, this new one is not included
   in the TOC.
 * If that is possible to implement, thanks in advance!

The topic ‘Doesnt count headers if generated by shortcode’ is closed to new replies.

 * ![](https://ps.w.org/top-table-of-contents/assets/icon.svg?rev=2709546)
 * [TOP Table Of Contents](https://wordpress.org/plugins/top-table-of-contents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-table-of-contents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/top-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-table-of-contents/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [eimos](https://wordpress.org/support/users/eimos/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-count-headers-if-generated-by-shortcode/)
 * Status: not resolved