Advanced Custom Fields
[resolved] Line Breaks (4 posts)

  1. atelierstudios
    Posted 4 years ago #

    Hi I can't seem to get either text area or WYSIWYG options to output line breaks all of my text is just one continous string of text.. can anyone help me out?


  2. elliotcondon
    Plugin Author

    Posted 4 years ago #

    Hi atelierstudios,

    Are you using the get_field or the_field functions?

  3. atelierstudios
    Posted 4 years ago #

    No sorry maybe I haven't fully read the documentation. I am just using the standard WordPress get_post_meta function <?php echo get_post_meta($post->ID, "name_of_custom_field", true); ?>. I did notice that when I add the content via the Advanced Custom Fields WYSIWYG editor it adds a standard custom field which doesn't contain any p or br tags, all other formatting seems to be included though?

  4. atelierstudios
    Posted 4 years ago #

    Ok to confirm I have used the the_field method and the paragraphs now appear... great thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic