Title: Exclude the plugin from a specific HTML code/div/span/etc
Last modified: February 7, 2024

---

# Exclude the plugin from a specific HTML code/div/span/etc

 *  [JCV](https://wordpress.org/support/users/psykonevro/)
 * (@psykonevro)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-the-plugin-from-a-specific-html-code-div-span-etc/)
 * Hi there,
    I’m a plugin developper. My plugin adds a HTML block with some HTML
   spans. For the sake of compatibility with related posts, I would like to know
   how I could exclude related posts from such block. I saw [in this post](https://wordpress.org/support/topic/how-to-exclude-inline-related-posts-inside-custom-divs/)
   it was impossible unless editing the core of related posts, which obviously it’s
   not a solution. But the post is almost 4 years old. Any way to prevent related
   posts to not get executed in a given area? Thanks.

Viewing 1 replies (of 1 total)

 *  [absoluteweb](https://wordpress.org/support/users/absoluteweb/)
 * (@absoluteweb)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/exclude-the-plugin-from-a-specific-html-code-div-span-etc/#post-17684928)
 * The list of classes has a settings field in the pro version. It’s a shame there
   isn’t at least one WordPress filter in the free version.

Viewing 1 replies (of 1 total)

The topic ‘Exclude the plugin from a specific HTML code/div/span/etc’ is closed 
to new replies.

 * ![](https://ps.w.org/intelly-related-posts/assets/icon-256x256.png?rev=2672481)
 * [Inline Related Posts](https://wordpress.org/plugins/intelly-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/intelly-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/intelly-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/intelly-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/intelly-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/intelly-related-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [absoluteweb](https://wordpress.org/support/users/absoluteweb/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/exclude-the-plugin-from-a-specific-html-code-div-span-etc/#post-17684928)
 * Status: not resolved