Front-end Editor
[resolved] Enable autop on editable_post_meta rich? (3 posts)

  1. Postmatic
    Posted 5 years ago #

    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!

  2. scribu
    Plugin Author

    Posted 5 years ago #

    Try this:

    add_filter('post_meta', 'wpautop', 9);
    editable_post_meta(get_the_ID(), 'blahblah', 'rich');
    remove_filter('post_meta', 'wpautop', 9);
  3. Postmatic
    Posted 5 years ago #

    Brilliant as usual. Thanks, Scribu.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Front-end Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic