[Plugin: Front-end Editor] Use editable_post_meta outside loop?
-
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');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘[Plugin: Front-end Editor] Use editable_post_meta outside loop?’ is closed to new replies.