read more link not functioning well
-
I have this code and whenever I click read more, it shows the template id but it doesn’t shows up the full content…..
Here’s the snippet:
if (isset($testimonial[‘readmore’]) && $testimonial[‘readmore’] != ”)
$readmore_link = $testimonial[‘readmore’];
elseif ( $append_link ) {
if (strpos( $readmore_link, ‘?’) === false)
$readmore_link .= ‘?testimonial_id=’ . $testimonial[‘id’];
else
$readmore_link .= ‘&testimonial_id=’ . $testimonial[‘id’];
}$readmore = ”;
if ($readmore_link != ”)
$readmore = ‘‘.$readmore_text.’‘;$testimonial[‘testimonial’] = $purifier->purify($testimonial[‘testimonial’]);
if ($word_limit > 0) {
$word_limit++;
$exp = explode(‘ ‘, strip_tags($testimonial[‘testimonial’]), $word_limit);/**
* If there are more words than we actually want (see line 3304) then the last item should be …
**/
if (count($exp) == $word_limit)
$exp[ $word_limit – 1 ] = $readmore;$testimonial[‘testimonial’] = implode(‘ ‘, $exp);
} elseif ($char_limit > 0) {
if (strlen($testimonial[‘testimonial’]) > $char_limit)
$testimonial[‘testimonial’] = substr(strip_tags($testimonial[‘testimonial’]), 0, $char_limit).$readmore;} else {
if ( HMS_Testimonials::getInstance()->options[‘nl2br_on_output’] == 1 ) {
$testimonial[‘testimonial’] = nl2br($testimonial[‘testimonial’]);
}
}
- The topic ‘read more link not functioning well’ is closed to new replies.