Romantic Robot Working on it.

19:50 Wed 2 Nov 2005

A plugin

Filed under: WordPress — 19:50 Wed 2 Nov 05

Sometimes I click Publish and when I see the post realised I’ve made a mistake in the formatting (or I see typos which is more the case) and I have to click Edit to redo it. Hardly a torment but mildly annoying when it happens repeatedly. Now I know I can save a post as ‘Private’ and then view it but I can’t be bothered with all that public/private stuff here. So I wondered if I could write a wee line of code so I could preview it.
When you save a post then go back to re-edit it, this is what I see in the address bar:
http://www.romanticrobot.net/wp-admin/post.php?action=edit&post=1860
and I wanted to turn that into
http://www.romanticrobot.net/?p=1860
which would me I see the preview and you do not. Nice.
I have played around on and off for about a week trying to get this working but no way. It either just did not work or I got errors in the admin. Tonight I gave up trying to make sense of it and went to the brains that is #wordpress. And with the help of Xuff and Firas I now have a plugin. No, not the code I have frustrated myself with, but a plugin that was written by BigJibby over two months ago. We did get the code I was trying to work but as my next step was to convert it to a plugin, this saved me the work, me the frustration and others from having to answer a whole heap of questions. I give you the Preview Drafts Plugin from September. Works a treat :) Somehow it slipped under my radar. And yes I know this is a 1.6 feature but I’m not yet convinced that there is enough in there for me to upgrade – hence my wanting this.

1 Comment »

  1. […] WordPress Headlines Bug Hunt Preparations The upcoming WordPress Bug Hunt is receiving a lot of attention, and we’re all getting pretty excited. This should be a fun way to meet other WordPress users and hackers, and a great way to give back to a project which you love. We really do want as many people as possible to participate, and [read more at skippy dot net] How to use Flickr on WordPress.com I wrote this post over at my WordPress.com blog, but I figured I would post it here because people actually read this one. You might have noticed the new tab in the media box at WordPress.com labeled “Browse Flickr”. I am partially responsible for that functionality. Andy Skelton coded the bulk of the media [read more at Asymptomatic] A plugin Sometimes I click Publish and when I see the post realised I’ve made a mistake in the formatting (or I see typos which is more the case) and I have to click Edit to redo it. Hardly a torment but mildly annoying when it happens repeatedly. Now I know I can save a post as [read more at What makes you happy ?] […]

    Pingback by Login - Red Alt — 07:44 Sat 5 Nov 2005 @ 07:44 Sat 5 Nov 05

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress