Text preview under thumbnail not working properly
Hi, I have a small issue with the preview text for the post not always appearing properly under the thumbnail. I have a grid layout, and the first 6 thumbnails display the text perfectly, cutting it off at the right point with …
however, after 6 posts, the text cuts off at random points and doesnt have the …
i think its something to do with this code in the index.php but not sure – and dont know how to fix it:
<p><?php $temp_arr_content = explode(" ",substr(strip_tags(get_the_content()),0,170)); $temp_arr_content[count($temp_arr_content)-1] = ""; $display_arr_content = implode(" ",$temp_arr_content); echo $display_arr_content; ?><?php if(strlen(strip_tags(get_the_content())) > 170) echo "..."; ?></p>
my site is alastairphilipwiper.com/blog
hope someone can help!
- The topic ‘Text preview under thumbnail not working properly’ is closed to new replies.