"><strong><a href="<?php echo get_permalink(); ?> " title="View <?php echo the_title(); ?> "><?php echo the_title(); ?> </a></strong> <div class="search-results"> <?php $tmp = get_the_content(); $new_content = strip_tags($tmp, '<p>'); $content_trimmed = trim_by_chars($new_content, '100', nh_continue_reading_link()); echo '<p>' . $content_trimmed . '</p>'; // Get post cats echo '<p><span class="byline">in</span> '; $categories = get_the_category(); if ($categories) { foreach ($categories as $cat) { $cat_name = $cat->name; $cat_id = get_cat_ID($cat_name); $cat_link = get_category_link($cat_id); echo '<a href="' . $cat_link . '" title="View ' . $cat->name . '">'; echo $cat->name; echo '</a> + '; } } // Get post cities
function nh_custom_excerpt_more($output) { if (has_excerpt() && !is_attachment()) { $output .= nh_continue_reading_link(); } return $output; }
} } wp_reset_query(); ?> <li class="ideas-list"></li> </ul> </div> <div class="span6 home-about"> <h5 class="widget-title">About CityHow</h5> <?php $page_id = get_ID_by_slug('about'); $post = get_post($page_id); $content = $post->post_content; $content = strip_tags($content, '<p>,<a>'); $content = trim_by_words($content, '98', nh_continue_reading_link()); echo $content; ?> </div> </div> <?php // END IF USER LOGGED IN } ?> </div><!--/ main--> </div><!--/ wrapper--> </div><!--/ row-fluid-->
?> "><strong><a href="<?php echo get_permalink(); ?> " title="View <?php echo the_title(); ?> "><?php echo the_title(); ?> </a></strong> <div class="search-results"> <?php $tmp = get_the_content(); $new_content = strip_tags($tmp, '<p>'); $content_trimmed = trim_by_words($new_content, '20', nh_continue_reading_link()); echo '<p>' . $content_trimmed . '</p>'; ?> <?php $categories = get_the_category(); if ($categories) { echo '<p><span class="byline">in</span> '; foreach ($categories as $cat) { $cat_name = $cat->name; $cat_id = get_cat_ID($cat_name); $cat_link = get_category_link($cat_id); echo '<a class="nhline" href="' . $cat_link . '" title="See ' . $cat->name . '">'; echo $cat->name; echo '</a>'; }