Title: Multi-line data
Last modified: August 21, 2016

---

# Multi-line data

 *  Resolved [billseymour](https://wordpress.org/support/users/billseymour/)
 * (@billseymour)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/multi-line-data/)
 * Good concept – I am trying it out right now.
 * Do you support multi-line data? ie, one data entry with two lines:
 * address-line-1
    address-line-2
 * or
 * address-line-1`<br />`
    address-line-21`<br />`
 * Thus far, I tried adding some Html to a data field (use of `<br />` ), and also
   the Ascii codes for < and >, but in both cases the Shortcode and the return function
   simply display the characters (`<br />`) and do not give me a new line.
 * This would be most helpful. Thanks for the good work.
 * [https://wordpress.org/plugins/simple-custom-website-data/](https://wordpress.org/plugins/simple-custom-website-data/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multi-line-data/#post-4818834)
 * Hi billseymour,
 * Sorry for the delayed reply.
 * All HTML is stripped to avoid XSS but there are a few ways you could achieve 
   what you want.
 * The first way is to have multiple records for each line
 *     ```
       [cwd ref="address-line-1"] <br>
       [cwd ref="address-line-2"]
       ```
   
 * The second way is to store your address as an array and loop through it adding
   the 
    after each element.
 * Your record would be added like:
    [http://imgur.com/OXN0BjW](http://imgur.com/OXN0BjW)
 *     ```
       <?php foreach(cwd_getThe('address') as $key => $line): ?>
       <?php echo $line ?><br>
       <?php endforeach;?>
       ```
   
 * I will look into allowing certain markup to be stored in a future update.
 * Hope this reply isn’t too late.
 * Danny
 *  Thread Starter [billseymour](https://wordpress.org/support/users/billseymour/)
 * (@billseymour)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multi-line-data/#post-4818835)
 * Danny-
 * Thanks for the response. I will try out your suggestions.
 * Re future update: I do think that some (not all) markup would be appropriate 
   for inclusion. Certainly a line break would be helpful. The ability to add a 
   link would also be of value, but I don’t know if that might raise the kind of
   security issues that require html-stripping in the first place.
 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multi-line-data/#post-4818871)
 * Your suggestions have been noted. Any other problems just let me know. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multi-line data’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-custom-website-data_2d3e50.
   svg)
 * [Custom Website Data](https://wordpress.org/plugins/simple-custom-website-data/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-custom-website-data/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-website-data/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-website-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-website-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-website-data/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/multi-line-data/#post-4818871)
 * Status: resolved