I thought I had a fix by using the shortcode block, instead of a paragraph or html block. That fixed the formatting problem, but I still get two instances of the table of contents, meaning adding in a TOC manually does not turn off the auto TOC.
-
This reply was modified 5 years, 11 months ago by
gpwebnut.
Part of the problem appears to be when I save the shortcut block as a resusable block, that is when I get two instances of the table of content. If I just use a regular block then I don’t get two instances.
Plugin Author
WPJoli
(@wpjoli)
Hi,
It is indeed better to use the shortcode with the shortcode block.
Have you managed to solve your problem by the way ?
The way the plugin works is, if the shortcode is detected within the raw content (before the shortcode are actually processed), then it is supposed to override the auto insert.
My guess is a reusable block does not output the actual shortcode in the raw content, but only a reference to that block without its actual content. Then the shortcode check would fail in this case.
I have to verify this behaviour more in details though. In the mean time I would recommand that you use a standard shortcode block.
Yes, it does seem that it will not work with a reusable block. Not a big deal. Thanks for your help.
Plugin Author
WPJoli
(@wpjoli)
Glad to hear that.
Thank you for your feedback!