Version 1.1

Version 1.1 adds a few usability improvements:

  • a spinner is displayed while loading and saving data
  • pressing escape while editing will remove the form
  • pressing enter while editing a text input will submit the form

Also, it allows you to edit custom taxonomies, just like you would edit post tags. I recommend the Simple Taxonomies plugin for creating custom taxonomies.

Here is a code example:

<?php the_terms($post->ID, 'mytax'); ?>

To make it work in WP 2.8 *, you have to open wp-includes/category-template.php and find the_terms() function. Then, you have to make it look like this:

function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) {
    $term_list = get_the_term_list( $id, $taxonomy, $before, $sep, $after );
 
    if ( is_wp_error( $term_list ) )
        return false;
 
    echo apply_filters('the_terms', $term_list, $taxonomy, $before, $sep, $after);
}

____
* You don’t have to do this if you’re using WordPress 2.9 or newer (see #10600).

Loading only on certain pages

Here is a foolproof way to make only parts of your site editable:

function front_editor_disable() {
	if ( ! is_single() )
		return true;
}
add_filter('front_end_editor_disable', 'front_editor_disable');

Just add that code in your theme’s functions.php file and you’re good to go: the plugin will work only on single posts.

Feel free to replace is_single() with whatever condition you need.

Version 1.0

The new feature in this release is the possibility of editing a single paragraph in a post, instead of the whole post. If you want to go back to the old behaviour, you can uncheck the new checkbox from the settings page.

Speaking of which, the settings page is now split into two dashboard-like boxes.

Version 0.9

This version adds post meta editable fields. These are a little different from the others. To add a custom field editable meta, you have to add something like this inside The Loop in you WordPress theme:

<?php editable_post_meta($post->ID, 'my_key', 'textarea'); ?>

The first argument is the current post id, the second is the custom field key and the third is the type of field you want (input, textarea or rich).

Version 0.7

This version adds a Settings page under Settings -> Front-end Editor. There you can choose which editable fields are active and which aren’t.

Also, double-clicking should work now for Internet Explorer users.

Version 0.6

This version makes it possible to also edit tags inline. However, due to a bug* in WordPress, it won’t work on most themes. If you want this feature you will have to make the following modification to your theme:

Replace the_tags() with echo get_the_tag_list().

Some fixes for the autogrow script have also been added. Props Jean-Paul Horn.

It’s now a lot easier to add new editable fields. I will be writing a post for developers on how to add new editable fields using this plugin.

____
* I’ve submitted a ticket, so the bug will hopefully be fixed in WP 2.8.

Version 0.5

Front-end Editor in action

Front-end Editor is a plugin that lets you edit posts or pages directly from your site. No need to load the admin backend just to correct a typo.

To edit something, just double-click it.

Current Features

  • edit title or content
  • works for posts and pages
  • should work with any theme
  • lightweight

This is just the first version and more features are still to come. What I have in mind:

  • include WYSIWYG editor
  • edit tags and/or categories
12