• I couldn’t figure out why the description wouldn’t show more than 10 words no matter what I did or how many slides I had, so I went searching through the code and found the following lines in content-slider-custom-shortcodes.php for div class=”cgs-content”:

    $trimmed_content = wp_trim_words( $content, 10);
    $trimmed_content2 = wp_trim_words( $content, 20);

    The first one trims the content down to 10 words, meaning that, no matter how much room you have, no more than 10 words will display. Now, my knowledge of PHP is extremely limited, but I can’t figure out why there is any word limit set at all, much less one that small.

    https://wordpress.org/plugins/content-grid-slider/

  • The topic ‘Description won't go over 10 words long.’ is closed to new replies.