Title: How to Split Single Text into Multiple Lines
Last modified: August 24, 2016

---

# How to Split Single Text into Multiple Lines

 *  [SJS719](https://wordpress.org/support/users/sjs719/)
 * (@sjs719)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/)
 * Hey guys,
 * I am designing a business directory site like YP and I am trying to display a
   business’s address on multiple lines within the business’s “listing” page. I 
   am displaying the address using the function
    <?php the_listing_categories();?
   > which works great to display the business address within the post, but it displays
   the address on 1 line and I need it on multiple lines.
 * Currently Displayed as:
    2555 Grandview Rd., Colorado Springs, CO 80910, USA
 * To be displayed as:
    2555 Grandview Rd Colorado Springs, CO 80910, USA
 * I would also like to be able to add another line if the address has a Suite or
   Room # such as:
    2555 Grandview Rd. Suite #10 Colorado Springs, CO 80910, USA
 * Any ideas?

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163303)
 * When you output the address use [nl2br()](http://php.net/nl2br) to add in new
   lines.
 *  Thread Starter [SJS719](https://wordpress.org/support/users/sjs719/)
 * (@sjs719)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163387)
 * Hi Catacaustic, thanks for your response!
 * Can you please show me where to insert nl2br() within the <?php the_listing_categories();?
   > function in order to split the address into separate lines?
 * Thanks!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163389)
 * where does the function `the_listing_categories()` orignate from?
 * what is the full exact code of that function?
 * if it is theme specific, what theme are you using?
 *  Thread Starter [SJS719](https://wordpress.org/support/users/sjs719/)
 * (@sjs719)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163446)
 * It is theme specific and it comes from the theme “Vantage” by Appthemes. Here
   is the link: [https://www.appthemes.com/themes/vantage/](https://www.appthemes.com/themes/vantage/)
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163457)
 * I’m sorry, but we can’t help with [commerical themes](http://codex.wordpress.org/Forum_Welcome#Commercial_Products).
   We don’t know the code, and we don’t have access to anything to see how it works.
 * Your best option is ot ask the themes authro or vendor for support. They have
   the code and they can see how to integrate this request correctly.
 *  Thread Starter [SJS719](https://wordpress.org/support/users/sjs719/)
 * (@sjs719)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163494)
 * Oh okay, well thanks anyways catacaustic!

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

The topic ‘How to Split Single Text into Multiple Lines’ is closed to new replies.

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [display](https://wordpress.org/support/topic-tag/display/)
 * [spacing](https://wordpress.org/support/topic-tag/spacing/)
 * [taxonomies](https://wordpress.org/support/topic-tag/taxonomies/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 6 replies
 * 3 participants
 * Last reply from: [SJS719](https://wordpress.org/support/users/sjs719/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-split-single-text-into-multiple-lines/#post-6163494)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
