Languages: English • 関数リファレンス/wp trim excerpt 日本語 (Add your language)
Generates an excerpt from the content, if needed. Must be used inside the "Loop".
The excerpt word amount will be 55 words and if the amount is greater than that, then the string ' […]' will be appended to the excerpt. If the string is less than 55 words, then the content will be returned as is.
<?php wp_trim_excerpt( $text ) ?>
wp_trim_excerpt() is located in wp-includes/formatting.php
.