Skip to main content.
March 29th, 2007

WordPress Post mangling - quick change to keep 2 past revs of a post

I had been working really hard on my post on our super duper mail server and at some point I started having some really weird interactions with the tinymce editor. I was switching back and forth between the raw HTML editor and all of a sudden I only had the middle 60% of my post. Stupidly I hit Save and lost a good chunk of my valuable words of wisdom. I was able to recover most of the text from the original email, but I was a bit perturbed there wasn’t a revert feature.

So, I added one:

ALTER TABLE `posts` ADD `post_content_bkp1` LONGTEXT AFTER `post_content` ,
ADD `post_content_bkp2` LONGTEXT AFTER `post_content_bkp1` ;

or actually two revisions.

I then altered the sql for updating posts like so:

post_content_bkp2 = post_content_bkp1,
post_content_bkp1 =
post_content,

so, there may not be any interface for this, but at least if I or the software mangles a post while I’m editing, I should be able to go to the db and recover something.

Posted by Brian Blood as Database, General, Web Software at 12:39 AM CDT

1 Comment »

September 21st, 2006

Picking a WordPress Theme

It seems it took me 2 to 3 times as long to pick and customize a theme for this new blog than it did to install.

I guess that’s a testament to the WP folks.

And a big thank you for the maintainer of themes.wordpress.org for allowing me to search the available items by whether it was a fixed vs fluid-width theme.

Posted by Brian Blood as Web Software at 12:43 AM CDT

No Comments »