If possible, could you give me an example of the full, unfiltered post that’s being displayed incorrectly? I’d like to help troubleshoot if I can.
This is the post content:
[div class=”inside”]
Inside a div
[end-div]
I’ve tested on multiple sites and situations and am having the same problem.
Thanks
Hmm. What other plugins do you have installed?
Nothing.
I was having this problem, so set up a clean wordpress install with the default theme just to test this.
If I dont pass any arguments, such as [div] [end-div] its fine. But if I pass a class or id I get the extra zero.
Are you not able to recreate this problem?
I just installed version 1.0 of the plugin and it doesn’t have the same problem. Its only the current version.
That’s very odd. No, I’m not able to recreate it at all in any version I’ve written. I hope that I would never have released code that fails quite so spectacularly. π
@billerickson hasn’t released version 2.0.1 yet, but would you mind giving it a shot? Here are some instructions:
- Browse here: http://pastebin.com/xNb24P1G
- Click the “Copy to Clipboard” link.
- Go to your WordPress Admin site.
- Go to “Plugins” > “Installed Plugins”.
- Under “Div Shortcode”, click “Edit”.
- Click inside the text box with the plugin’s PHP code.
- Hit <COMMAND>+A (or <CONTROL>+A in Windows) to select all of the code.
- Hit <COMMAND>+V (or <CONTROL>+V in Windows) to paste the new plugin code.
- Click the “Update File” button.
Now try your post again, and let me know what happens.
I’ve just released version 2.0.1 (minor modification to dean’s). You should receive a notification in your Plugins page in the next few hours prompting for an update. Hopefully this solves your issue.
I’m also unable to reproduce this issue, but you’re not the first person to report issues with the new version. If this update doesn’t solve it then I’m rolling back to version 1.0 which no one ever had issues with.
I updated and am still having issues. This is a clean install with no other plugins installed:
http://hybridvigordesign.com/test/test/
Thats strange your not able to recreate the problem.
I’m giving up on the new version. Version 2.1 is coming out that’s a regression to the original. It was a good concept but there’s too many issues and I’m not able to reproduce any of them.
Sounds good – thanks for your help.
Hey @muypescado. Could you tell me what version of PHP you’re using? Just curious.
Well, that could explain quite a bit, but I’m not positive how much of my code doesn’t work in 5.2. I only tested it in 5.3 and should have been more explicit about that.