Forums

[resolved] [Plugin: Front-end Editor] Use editable_post_meta outside loop? (3 posts)

  1. mindshare
    Member
    Posted 2 years ago #

    When I use editable_post_meta outside the loop it I don't throw any errors but I the Front End Editor doesn't show up when I double click on the custom field text. Any thoughts on fixing this?

    Here's my code:

    $teaser = get_post_meta(get_the_ID(), 'short_teaser', true);
    if (empty($teaser) || $teaser == '[empty]') {
    	$teaser = 'my default content';
    	update_post_meta(get_the_ID(), 'short_teaser', $teaser);
    }
    editable_post_meta(get_the_ID(), 'short_teaser', 'rich');

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Posted 2 years ago #

    This is fixed in the development version (1.7b).

    Thanks for reporting.

  3. mindshare
    Member
    Posted 2 years ago #

    Thank you! Amazing plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic