removing get_the_excerpt function as it is not functioning reliably. For the communit...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 30 Aug 2016 20:23:25 +0000 (16:23 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 30 Aug 2016 20:23:25 +0000 (16:23 -0400)
parts/community-map.php

index 04050bf..72b223e 100644 (file)
@@ -55,10 +55,11 @@ $nav_posts = get_posts($nav_args);
 foreach ($nav_posts as $p){
     $page_object = get_page( $p->ID );
 
-    $sites[$p->ID]['url'] = get_permalink($p->ID);
-    $sites[$p->ID]['title'] = get_the_title($p->ID);
+    $sites[$p->ID]['url'] = get_permalink( $p->ID );
+    $sites[$p->ID]['title'] = get_the_title($p->ID );
     $sites[$p->ID]['image'] = wp_get_attachment_url( get_post_thumbnail_id($p->ID));
     $sites[$p->ID]['excerpt'] = get_the_excerpt( $p->ID );
+    echo $p->ID;
 
     // $content = strip_tags($page_object->post_content);
     // $filter_content = mb_substr($content, 0, strpos($content, ' ', 260));
@@ -133,7 +134,7 @@ foreach ($nav_posts as $p){
                 image_container.css("display", "none");
             }
 
-            regionData.find(page_content).html(site_array[id]['excerpt'] + "...");
+            regionData.find(page_content).html(site_array[id]['content'] + "...");
             regionData.find(more_link).attr("href", site_array[id]['url']);
 
         }, function () {