Title: Filtering Out the TOC
Last modified: August 24, 2016

---

# Filtering Out the TOC

 *  [CEMBTW](https://wordpress.org/support/users/cembtw/)
 * (@cembtw)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/filtering-out-the-toc/)
 * First, I love the plugin and options you’ve put in.
 * But when my SEO plugin (Yoast) is pulling a post’s og:description tag from the
   content—which includes the plain text of the table of contents. This isn’t a 
   problem with your plugin, I just want to workaround it.
 * With another plugin that added something to the content, I just added a filter
   to my SEO plugin that would remove the unneeded text—once I could find out exactly
   how to retrieve that text.
 * Is there some function/variable/etc that I can use to get what is generated for
   a post’s TOC? I don’t care if it has the html, just as long as the text is there
   for me to retrieve. I think toc_get_index() could help, but I’m missing how.
 * Thanks.
 * [https://wordpress.org/plugins/table-of-contents-plus/](https://wordpress.org/plugins/table-of-contents-plus/)

The topic ‘Filtering Out the TOC’ is closed to new replies.

 * ![](https://ps.w.org/table-of-contents-plus/assets/icon-256x256.png?rev=1151771)
 * [Table of Contents Plus](https://wordpress.org/plugins/table-of-contents-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/table-of-contents-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/table-of-contents-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/table-of-contents-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/table-of-contents-plus/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [CEMBTW](https://wordpress.org/support/users/cembtw/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/filtering-out-the-toc/)
 * Status: not resolved