Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 2

Solving Wordpress 2.0 External Posting Errors

January 8th, 2006 · 3 Comments

Since upgrading to WP2.0 I had not been able to use my favorite Weblog editor Ecto to do any posts which contained any inline tags, such as div or span classes. Also, it had been stripping the meat of Image tags. This was playing hell with my Technorati tags and, well, with how I like to blog.

Looking at the Ecto console, I saw that it was actually WP which was refusing to take the tags. With that bit of information, I rapidly zeroed in on the problem.

Solution

Edit your wp-includes/kses.php file, add the tag attributes you want.

I changed or added the following:
'div' => array ('align' => array (), 'class' => array (), 'id' => array(), 'style' => array()),
'span' => array ('class' => array (), 'id' => array(), 'style' => array()),
'p' => array ('align' => array (), 'class' => array (), 'id' => array(), 'style' => array()),
'tag' => array(), 'tags' => array(),

You can download the kses.php file with my fixes, if you like.

Now, everything but the img uploads is working as it should. I’ll figure that out and post the solution soon.

Update: 15 minutes later

To make images work, simply make sure you close the tag, and put a space after the src.

Bad:
<img src=”http://example.com/test.jpg”>
<img src=”http://example.com/test.jpg”/>

Good:
<img src=”http://example.com/test.jpg” />

Thanks go to Doncha for the img tag tip.

Technorati Tags: ,

Tags: Wordpress · Site

Bookmark this article

del.icio.us:Solving Wordpress 2.0 External Posting Errors digg:Solving Wordpress 2.0 External Posting Errors spurl:Solving Wordpress 2.0 External Posting Errors wists:Solving Wordpress 2.0 External Posting Errors simpy:Solving Wordpress 2.0 External Posting Errors newsvine:Solving Wordpress 2.0 External Posting Errors blinklist:Solving Wordpress 2.0 External Posting Errors furl:Solving Wordpress 2.0 External Posting Errors reddit:Solving Wordpress 2.0 External Posting Errors fark:Solving Wordpress 2.0 External Posting Errors blogmarks:Solving Wordpress 2.0 External Posting Errors Y!:Solving Wordpress 2.0 External Posting Errors smarking:Solving Wordpress 2.0 External Posting Errors magnolia:Solving Wordpress 2.0 External Posting Errors segnalo:Solving Wordpress 2.0 External Posting Errors gifttagging:Solving Wordpress 2.0 External Posting Errors

3 responses so far ↓