Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #3035
      cosmocanuck
      Member

      Hi! I’ve set up a simple editor metafield:

      piklist('field', array(
          'type' => 'editor'
          ,'field' => 'serving_suggestions'
          ,'label' => __('Serving Suggestions')
          ,'columns' => 12
      ));
      

      But in the front end, it displays with the text all run together, ignoring paragraphs and line breaks. Am I missing something in my code? Here’s how I’m grabbing the info:

      echo '<p id="productServingSuggestions">' . get_post_meta($post->ID, 'serving_suggestions', true) . '</p>';

      Many thanks!
      Adam

    • #3036
      Steve
      Keymaster

      @cosmocanuck– WordPress does all the work when you use the_content(). On custom Editors you need to do the work. I updated the bottom of the Editor docs with the info you need.

    • #3042
      cosmocanuck
      Member

      Brilliant! Thanks!

Viewing 2 reply threads
  • The topic ‘No paragraphs or line breaks displaying from my editor field’ is closed to new replies.