Manual exclusion per post
-
Hi,
I’m using the shortcode[lwptoc]
to include the TOC in a custom sidebar. My problem is that my theme uses inline Related Posts. And the TOC is picking these up, because they’re set in the<h3>
tag. I cannot exclude the<h3>
tag easily; I use it for headings throughout my site.
I was wondering if it’s possible, instead of the shortcode, to use a PHP snippet instead that includes a line for custom exclusions.
That way I could edit to include exclusions on a post-by-post basis.
Or maybe you have a better idea.
Alternatively, if a<div>
class, or even a<h3>
class, could be excluded, that would work globally.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Manual exclusion per post’ is closed to new replies.