simple line break
-
Hi all,
I have a simple question I am calling a title and category description which works fine thanks to some forum help, but I would like to put a further line break between the title / description as it currently appears like this:
https://www.magic-photography.co.uk/?cat=14
where the title just goes into the rest of the text. I have tried using nl2br; but can’t get it to work. Here is the code:
<?php if (is_category()) { single_cat_title(); nl2br; echo category_description(); } elseif (is_tag()) { ?> posts tagged "<?php single_tag_title(); ?>" <? } elseif (is_day()) { the_time('F jS, Y'); } elseif (is_month()) { the_time('F, Y'); } elseif (is_year()) { the_time('Y'); } elseif (is_author()) { the_author(); } ?>
Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘simple line break’ is closed to new replies.