I would try something like this:
$lines = explode("\n", $instruction_textarea); // or use PHP PHP_EOL constant
if ( !empty($lines) ) {
echo '<ul>';
foreach ( $lines as $line ) {
echo '<li>'. trim( $line ) .'</li>';
}
echo '</ul>';
}
It should work.
Related Posts:
- Display all values of custom a field created with ACF on a page
- If Custom Field is empty don’t display div
- Unique key for each row in a repeater field
- Importing hard coded custom field into acf field
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- How to use thumbnail size of image if I’m only using src to get image
- Advanced Custom Fields – display label and value only if value entered
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Creating an image from a custom field
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Including Custom fields within the_content
- Delete images from media library when user deletes an image from ACF Gallery
- Query on a repeater date (acf)
- ACF – Can’t get custom post type by taxonomy
- ACF Date fileds to Age Convert [closed]
- ACF number less than comparison not working
- Cannot Access ACF Field Values via my Plugin
- How to create advanced custom fields for backend content
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- How to handle a custom form in wordpress to submit to another page?
- How to display multiple Post meta_key/meta_values by SQL query
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to use multiple query with same meta key
- How to loop over custom fields in a page template?
- Removing WordPress profile fields from non-admins
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Use ajax to update_post_meta
- Can an array be used as a meta_query value?
- WooCommerce: update custom fields after checkout validation failure
- If Meta Checkbox is checked, do something?
- Show custom field if it exists, and show different elements if it doesn’t
- ACF check if variable has http, if else return string
- Custom field value not saving when it contains a URL?
- tracking number field in Woocommerce order [closed]
- ACF page while loop breaks footer while loop
- Sort posts by custom fields value using dropdown menu
- ACF: how do I get the fields and its values of a specific group?
- Need Help Fixing My Iframes [closed]
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Remove the first 5 characters of the_title and orderby that
- how to retrieve a value if a checkbox is checked
- Trouble checking if custom woocommerce checkout field is empty or not
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Add / Update Custom Fields After Select Pictures in Media Window
- Sort by page information by Ascending Numbers
- Automatic Shortcode Creation with Custom Fields [closed]
- Custom field values to taxonomy terms
- Advanced Custom Fields not displaying
- Display custom field on 404 page outside loop
- Only show image from custom field when present
- Hide Heading if ACF Field is empty
- Custom meta box values are not getting saved for my custom post type
- How to show meta value code HTML after x paragraph
- Form search query – displaying ACF “Post Object” field as results
- Get ACF options field in PHP acting as CSS
- User Meta Value not echoing despite Var_Dump Showing correct string
- How can I count ACF sub_field with a certain value
- Output custom text field as unordered list
- Advanced Custom Fields [closed]
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Get All In One SEO Pack to use custom field instead of Content
- Conditional On custom field plugin metabox
- Meta boxes only displayed when editing normal (default wp post_type) posts
- Using an “IF” statement based on the existence of custom field
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Updating Metadata with Shortcode
- Problems updating nested ACF field groups
- Setting up a cron job to auto update a custom field
- Advanced Custom Forms PHP formatting for do_shortcode
- ACF Gallery field images donwload
- ACF under category name in shop page [closed]
- Trying to retrieve meta values from three different meta keys and display in rows
- WP post meta – for loop inside for loop
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- ACF background-color per post in a WordPress loop
- Store custom field’s multiple values in one user meta key
- WooCommerce multiple custom fields code
- Make sticky post with FacetWP
- PHP for loop not working as intended
- WP_query meta_query slow with OR and DATES
- Get meta_query value by user meta array
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- meta field for numerous links
- Get month and day from a Date Picker custom field
- divide custom field values in div every two values
- Showing custom field contents without listing description
- How to exclude post from being queried based on custom meta value
- How to link a word comprised of a custom field with another?
- get_category only returning details for ‘uncategorized’
- Search result page – display values from the result’s metaboxes
- Order woo products, but first products must be with acf fields
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Custom Admin Menu Report for Specific User ID
- Advanced Custom Fields – How do I get field values of a group within a group field type
- Advanced Custom Fields Auto Populating Field Values For Nested Repeater FIelds
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- create custom post type and populate custom fields using php
- Want to add custom post type for facebook feed
- WordPress per ACF – permalink is not working