21st March 2009
One thing that I've noticed is that whenever I used -- in a post, such as this one, WordPress converted the -- to &emdash; which whilst very pretty doesn't work so well for people trying to understand command line switches to ./configure!
Today, I finally got around to poking into the WP source code to work out what was happening and I tracked it down to the wptexturize function in the wp-includes/functions-formatting.php file. Once I knew the name, it was trivial to google for a solution and I found Jason Litka's Disable wptexturize plugin. I couldn't find it through WordPress' new built-in plugin installer, so I installed it the old-fashioned way and now the code in my posts will make more sense!
Posted in Site, WordPress | 2 Comments »
10th November 2007
Note to help anyone else who has the same problem!
If you are a "little behind" the times when you upgrade you WordPress installation, you may see errors like this:
WordPress database error: [Table 'xxx.wp_post2cat' doesn't exist]
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p
LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id
LEFT JOIN `wp_categories` c ON pc.category_id = c.cat_ID
WHERE post_status = 'publish' GROUP BY cat_
This is because the tables used for storing categories has been changed and the old ones (wp_post2cat and friends) have been deleted and you have some old code in a plugin or your theme that uses it.
In my case it was this Google Sitemap Generator Plugin which was updated back when WordPress 2.1 was released, so the fault is clearly all mine! One thing that was interesting is that the plugin page within the WordPress admin system didn't tell me that I needed to upgrade that plugin, but it did tell me about others.
Posted in WordPress | 3 Comments »