adding elipses to default page content in the dropdown map content
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 22 Aug 2016 15:28:14 +0000 (11:28 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 22 Aug 2016 15:28:14 +0000 (11:28 -0400)
parts/community-map.php

index eea29d6..d0e7379 100644 (file)
@@ -9,7 +9,7 @@
             <?php $community_page_object = get_page( 155 ); ?>
             <?php  $community_page_image = wp_get_attachment_url( get_post_thumbnail_id( 155 )); ?>
            
-            <?php $community_page_content = substr(strip_tags($community_page_object->post_content),0, 300); ?>
+            <?php $community_page_content = substr(strip_tags($community_page_object->post_content),0, 300) . "..."; ?>
             <?php $community_page_content = json_encode(strip_shortcodes($community_page_content)); ?>
                
                 <a class="map-page-link" href="#"><div class="map-image-container"></div></a>