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');