Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solution: News Manager & External Commenting Working Together
#10
if you don't want to have the "[...]", you can simply write something else in it or let it empty in "functions.php":

Code:
/*******************************************************
* @function nm_create_excerpt
* @param $content the post content
* @return a truncated version of the post content
*/
/*function nm_create_excerpt($content) {
  global $NMEXCERPTLENGTH;
  $len = intval($NMEXCERPTLENGTH);
  $content = strip_tags($content);
  if (strlen($content) > $len) {
    if (function_exists('mb_substr'))
      $content = trim(mb_substr($content, 0, $len, 'UTF-8')) . ' [...]';  /*  <- here */
    else
      $content = trim(substr($content, 0, $len)) . ' [...]'; /* <- here */
  }
  return "<p>$content</p>";
Reply


Messages In This Thread
Solution: News Manager & External Commenting Working Together - by declis - 2012-02-24, 06:20:06



Users browsing this thread: 1 Guest(s)