ID
-
Hello SimpleTOC Support Team,
I have encountered a bug regarding how SimpleTOC handles headings inside a post loop on a static homepage.
The Issue: When using a Query Loop block (GenerateBlocks) on my static Homepage, SimpleTOC incorrectly parses the post titles within the loop. Instead of generating unique IDs based on the actual post headings, it applies the parent homepage’s slug (e.g.,
id="domu") to every single heading inside the loop.This creates multiple identical IDs on the same page, breaking HTML validation and accessibility.
Context:
- This issue occurs strictly on the static Homepage.
- It seems the plugin is trying to parse and filter content outside of the standard
is_singular('post')context and takes the global post object (the homepage itself) as the source for the ID generation.
Feature Request / Fix: Could you please fix the context detection so it ignores Query Loop blocks, or add a simple “Display Rule” option in the settings to strictly disable SimpleTOC on the front page / archives?
Thank you for your time and for looking into this!
You must be logged in to reply to this topic.