Viewing 1 replies (of 1 total)
  • Насколько я правильно понял, то

    I use the function for cutting text(excerpt):

    function do_excerpt($string, $word_limit) {
    	$words = explode(' ', $string, ($word_limit + 1));
    	if (count($words) > $word_limit)
    	array_pop($words);
    	echo implode(' ', $words).'...';
    }

    Then, in the right place to insert the code:

    do_excerpt(get_the_excerpt(), 30);

    30 – number of words

Viewing 1 replies (of 1 total)
  • The topic ‘Excerpt View of Favorites’ is closed to new replies.