WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Front-end Editor] Enable autop on editable_post_meta rich?

[Resolved] [Plugin: Front-end Editor] Enable autop on editable_post_meta rich?

  • Postmatic
    Participant

    @vernal

    I’m using <?php editable_post_meta(get_the_ID(), 'blahblah', 'rich'); ?> in a page template and having trouble with autop.

    The wysiwyg doesn’t seem to like generating P tags. It does do UL’s and headings, but no P. I’m hesitant to wrap the editable_post_meta tag in a P itself because the wysiwyg does indeed spit out other block level elements such as UL, plus that would limit the being just one paragraph…

    I’m using fee 1.9.5-alpha. Any advice would be great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu
    Member

    @scribu

    Try this:

    <?php
    add_filter('post_meta', 'wpautop', 9);
    editable_post_meta(get_the_ID(), 'blahblah', 'rich');
    remove_filter('post_meta', 'wpautop', 9);
    ?>
    Postmatic
    Participant

    @vernal

    Brilliant as usual. Thanks, Scribu.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Front-end Editor] Enable autop on editable_post_meta rich?’ is closed to new replies.