Closed EvertVd closed 10 years ago
Hi EvertVd, I'm very sorry for reading only now your proposal - I wasn't "watching" my issues on github.
Your suggestion has been accepted and implemented in this way: the user can choose if to use an excerpt up to the "more" tag or the excerpt as used until now.
Thanks!
Currently the tag is ignored and an automated excerpt is generated based on a number of words in the settings. I changed some code in 'posts-in-sidebar.php' at line 262 so it will first try to use the tag, and if it is not available it will generate based on word-count:
$excerpt_text = strip_shortcodes( $linked_posts->post->post_content ); $testformore= strpos($excerpt_text, ""); if ($testformore !== false) { $excerpt_text = substr($excerpt_text, 0, $testformore); } else { $excerpt_text = wp_trim_words( $excerpt_text, $exc_length, '…' ); } echo apply_filters( 'pis_excerpt_text', $excerpt_text );