Add new line break
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 30 Dec 2015 19:42:30 +0000 (14:42 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 30 Dec 2015 19:42:30 +0000 (14:42 -0500)
adding nl2br for the content

parts/glm-blocks.php

index cfca468..0f21602 100644 (file)
@@ -55,12 +55,12 @@ default:
             <?php if($block->url):?>
             </a>
              <?php endif;?>
-        <p><?php echo $block->post_content . $block->post_excerpt;?></p>
+        <p><?php echo nl2br($block->post_content);?></p>
 <!--        <?//php if ( is_home() || is_front_page() ) : ?>-->
-        <div class="separator text-center"><img src="<?php bloginfo('template_url'); ?>/assets/fancy-divider-large.jpg"></div> 
+        <div class="separator text-center"><img src="<?php bloginfo('template_url'); ?>/assets/fancy-divider-large.jpg"></div>
         <?//php endif; ?>
     </div>
-   
+
     <?php endforeach;?>
 </div>