Filter TOC Using Class
-
Hello,
I’m using the LuckyWP TOC plugin to automatically generate TOC for my posts. But I also use the Affiliate Coupons (Pro) plugin to insert discount codes and coupons into my text. Unfortunately, Affiliate Coupons (Pro) is inserting ALL coupons and hiding the ones not being used… and each coupon uses an H3 tag for the heading inside the coupon (which then shows in the TOC at the appropriate level).
Is there any way to apply a filter to the TOC to prevent it from showing the headings from the hidden coupons? I’ve had to disable the Affiliate Coupons (Pro) plugin (and rely on the basic Affiliate Coupons plugin functionality) to avoid this… and I’ve written to the Affiliate Coupons (Pro) author to see what solutions they may have.
But it would be great if, in addition to the option to “Skip heading by text” if there was an option to “Skip heading by class”. All of the hidden coupons have the same class applied to them, so I could filter them out easily if this was available.
Or, is there some other means of accomplishing this?
Thanks!
- The topic ‘Filter TOC Using Class’ is closed to new replies.