From: Anthony Talarico Date: Tue, 30 Aug 2016 20:23:25 +0000 (-0400) Subject: removing get_the_excerpt function as it is not functioning reliably. For the communit... X-Git-Tag: v1.0.0^2~52 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d59f7ed8cfdfe760afde6d2bbdaeec6dbbf386e5;p=WP-Themes%2Fpetoskeyarea.git removing get_the_excerpt function as it is not functioning reliably. For the community maps dropdown page content --- diff --git a/parts/community-map.php b/parts/community-map.php index 04050bf..72b223e 100644 --- a/parts/community-map.php +++ b/parts/community-map.php @@ -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 () {