Ready to get started?Download WordPress


Rotating Posts
Rotating Posts : Script - Excerpts (1 post)

  1. TumbleweedMarketingAnalytics
    Posted 2 years ago #

    1. This is the content output code in Mark Inderhees rotating_post.php file:

    echo "        <div class='rp_post_content'>{$postContent}</div>\n";

    2. How do I wrap the following code around the above statment:

      $excerpt = get_the_excerpt();
      echo string_limit_words($excerpt,25);

    IF.... this is the code in my functions.php file:

    function string_limit_words($string, $word_limit)
      $words = explode(' ', $string, ($word_limit + 1));
      if(count($words) > $word_limit)
      return implode(' ', $words);


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by TumbleweedMarketingAnalytics
  • This topic is not resolved
  • WordPress version: 3.4