• 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)
Viewing 6 replies - 1 through 6 (of 6 total)

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