If the line breaks exist in the database, you just need to run your custom field output through wpautop().
Changes double line-breaks in the text into HTML paragraphs (
<p>...</p>
).
If that doesn’t work, then the line breaks probably are getting stripped before going into the database. In that case you’ll need to share the code that saves the custom field to the database.
Related Posts:
- HTML code in Custom field
- Paragraphs removed when using get_post_custom()?
- How to get Advanced Custom Field Value According using POST ID? [closed]
- Guest Author – How to display posts on /author/ archive page
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Saving Post Data in Another Database
- WP_Query custom field pass the post id
- If custom field is empty, use one from a previous post
- Auto populate custom fields by post date
- ACF Relationship – Get Parent’s Post Object
- How to make a local “scroll to ID” on post?
- How to detect if an ACF custom-field is really in use?
- Add a checkbox to post screen that adds a class to the title
- Custom Field in Featured image for A particular post
- strip only specific tags (like ), but keep other tags (like )
- I am trying to create a simple frontend form for posting
- Prevent duplicate posts in wp_insert_post using custom fields
- Better post meta efficiency?
- How to show posts rank based on custom field value
- Adding a Nav menu to post admin
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Change post format using custom field
- get post id in while loops outputting page id
- How to change what the post creation page looks like?
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- How can I make existing custom fields easier to edit/add in my theme?
- Add custom fields to post programmatically
- How to add a custom field after wp post
- What Is meta_id In wp_postmeta?
- Add scripts on custom post add/edit pages Not Working
- Add custom field automatically (add_post_meta) with value based on number of words of article
- Global $post not working in OOP function WordPress
- Understanding and using metaboxes in posts
- Duplicating Table of Contents for Paginated Post
- Ajax Dynamic Archives not showing correct results
- Check if checkbox is marked on publish/update post
- Ajaxify This Code
- Query values from a Post Object Repeater [closed]
- Pausing and Resuming WP_Query results
- Saving custom fields to a custom taxonomy
- Query Posts by Custom Field
- Customize rel=canonical tag for single blog post
- How to I retrieve the ID from the Posts page?
- Get post ID from a link
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- Best Way to Add UnEditable HTML to Posts
- Get post meta retrieving wrong value
- Divs appearing everywhere in post content
- Edit multiple custom post types while saving a new or edited post
- Creating an image from a custom field
- Output Post with ACF Fields into other Post
- HTML Form Submit to table in same page
- After ajax image is outside the “ tag
- Edit custom fields in posts list
- saving/reading custom field value does not work – no value gets POSTed
- Adding external field to my post form (admin side) and to post show (frontend side)
- How To Use Custom Fields With .mp3 Links
- how can display a post on home screen without images
- Locally change the font family [closed]
- Display content between two dates?
- Right align a youtube video
- How to save template data into wp_post table (post_content column)
- Override WordPress core post-template.php block template
- Post meta not working
- Custom Fields – How to get the list of a specific active widget each time it rendered
- search form for custom fields
- How to work with posts and sub posts?
- Adding an option to post editor to show a site disclaimer or message
- Saving canvas generated image when saving post causes 404 error
- WordPress Recent Post with the badge “New” on the side of the title post
- Template with ACF and Pagebuilder
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Is there a way to save different data when USER interacts with the same POST?
- How do you update post date (year only) in a separate custom field?
- Change post value in WordPress
- Checking if a post contains an html tag
- How to generate an HTML link automatically from URL in a users’ post
- How do I display posts ordered by a date custom field?
- WordPress Request Post All Post ID in a Loop? [closed]
- Extracting a TLD from the content and assign to custom field
- get_the_ID() fails the first time, returns a value the second time it’s called
- Order posts by separate menu order for different sub-categories
- How to get all the terms of a post
- How to custom sort-out editing-panel fields?
- Delete old post with new post
- How can I create a menu items from meta box based on users input
- Home page: using custom fields for posts and pages
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- Attaching global meta to custom fields
- First Custom Post Custom Fields Empty After New Custom Post
- Display a custom field rating system in the front end
- How do I show the post title if an advanced custom field hasn’t been used?
- How enter custom post meta or custom field on box post list archive page?
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- Wrap posts from a category in HTML
- Custom post order returning posts from other categories
- How to automatically convert a form with HTML link into post
- Read more opens attachment
- How to make internal links creating plugin to respect ACF?