Categories
WordPress

Displaying code in WordPress

After experiencing some problems around displaying code in WordPress (mainly around the code lines being too long and wrapping off the side of the page) I installed Dean’s Code Highlighter.

Now, don’t get me wrong, this is an excellent plugin. However, I found a flaw in it after someone reported a problem with the WordPress plugin that I launched yesterday. They’d copy and pasted the example code from my instructions page and it didn’t work. It turns out that the code highlighter had taken my single quotes and converted them to open and closed single quotes. Which broke the code.

I had a good look at the plugin code but couldn’t easily work out a solution. In the end I realised that I simply didn’t need code highlighting so turned the whole thing off. Instead, I used a similar style and applied to the bog standard CODE wrap. The only down-side is that I have to wary of the line wrapping again.

Categories
WordPress

WordPress Tags

I’ve found – and I know others have too – that you can’t delete tags in WordPress from the tags management screen.

However, after recently upgrading my WordPress version I found that, after leaving my plugins disabled by accident, it would work. Enabling my plugins then broke the functionality. Unfortunately, my good fortune didn’t go as far as thinking to test it and try and work out which plugin is the cause.

So, yes, that’s the cause. But exactly what I’m not sure.

Next time I have some tags to delete and some times on my hand, I’ll try and work it out further.