there wasn’t any problem at the beginning but for some time now when I try to use [toc] shortcode it adds “<” before the heading and before the table itself.
P.S.: I’m with custom theme.
Thanks for raising that. It looks like an issue with handling the character set. Does it happen on all of your pages or just that one?
On all pages. And to be more precise when it happened for the first time it was just on that page, but when I updated a page that previously used TOC+ and had no problem, after the update of the text on that page, it happened on it too. So every new page or updated one has the problem. 🙂
Are you able to link me to a page with the problem? I’d like to grab a copy of the content and see if I can get it doing how you describe.
Does it only happen when you use the shortcode or does it also happen when you let it automatically add it?
It also happens with the automatically option turned on.
Here’s a page with the shortcode -> http://rattie.info/otglezhdane/dom-za-vashiya-plah/
I’ve copied your content but it doesn’t produce the extra < for me which leads me to think that it could be another plugin interfering? I’ve tried editing the page many times but they all work. I added the following plugins you were using to see but they worked ok for me.
Custom Contact Forms
SEO Facebook Comments
Can you trace back when it started to happen, if you had just added some new plugins to your site?
I think this is the post where it first happened -> http://rattie.info/okraski-pri-plahovete/ and toc+ was added on 24 of October as I see the revisions. And here is a post wich is not affected for now -> http://rattie.info/otglezhdane/hranene/ and is last updated on 21st October.
I don’t remember adding new plugins at that time but I could try disabling them one by one and see if any of them is the cause.
I’ve just pushed through a change to making the regular expression matching process a bit better as reported in
At the same time, I’ve enabled UTF8 in the regular expression which should should be good for international characters.
Do you mind giving the dev version a try to see if it helped fix your issue? After installing, you might need to edit the affected page and click update again.
If that didn’t work, try making it run earlier by editing line 132 of toc.php and change 100 to 1. Additionally, try making it run later by changing the number to 1000.
Now it seems fine but only with the auto insert option on and the value on line 132 equal to 1. With the shortcode it doesn’t appear at all, and with values 100 and 1000 too.
Ok that means that other plugins are coming in and doing their stuff which is probably adding those extra < signs. Unfortunately, you’ve got two options:
1. Disable plugins one by one to find out which plugin is doing it (then let me know so I can see if I can make it compatible with it).
2. Edit that line with all new releases of TOC+
Obviously option 1 is preferred but that will take some of your time which you may not have.
By the way, shortcodes come in at level 10 so tell TOC+ to run 11 or onwards.
Sorry, for my late reply.
So I checked the plugins and it seems deactivating “WP Socializer” plugin activates the shortcode for TOC+.
WP Socializer doesn’t produce the < for me so I can’t confirm what you’re getting. WP Socializer does have alot of PHP notices though.
Yeah, I meant that now after the update it’s fine without adding the extra “<” but using the shortcode doesn’t produce the table at all unless I turn off WP Socializer.
Ok I think…!
If you meant the update from http://wordpress.org/support/topic/toc-adding?replies=14#post-3376129 and you’ve still left it running at 1, try changing it to 11 as shortcodes run at 10.
- The topic ‘TOC adding "’ is closed to new replies.