Forum Replies Created
-
AuthorPosts
-
March 16, 2016 at 1:45 pm in reply to: after pro plugin update on 4.1 – Safari cant find server anymore? #1089977
Konrad
ParticipantThis reply is private.
January 13, 2016 at 8:09 am in reply to: Showing full content, not limited content (auto excerpt) after update to 4.0 #1055316Konrad
ParticipantI have all updates, but I was not satisfied with the result. My normal blog posts get truncated after 40 words (I guess this is a setting from my template) but the photo view excerpt was truncated at 80 words, which was way to long for my layout.
I succeeded now by inserting the following code into my functions.php
// shortend excerps for photo view of TEC add_filter( 'excerpt_length', 'tribe_excerpt_length', 999 ); function tribe_excerpt_length( $length ) { if ( tribe_is_photo() ) { return 20; } return 40; }Konrad
Participant@Jan: there must be a typo somewhere!
@all: it is working in German too. T I did not read and follow your solution carefully enough.I changed the original line
$excerpt = wp_trim_excerpt( $excerpt );
to
$excerpt = wp_trim_excerpt( $excerpt, '55' );
but should have changed to
$excerpt = wp_trim_words( $excerpt, '55' );
(It is not just adding the numbers – note the difference in the function name)Konrad
Participantsubscribed (I am also interested in a fix)
Konrad
ParticipantIn german it does not work also.
December 4, 2015 at 12:09 am in reply to: Showing full content, not limited content (auto excerpt) after update to 4.0 #1035257December 4, 2015 at 12:07 am in reply to: Showing full content, not limited content (auto excerpt) after update to 4.0 #1035256Konrad
Participant(Subscribed)
BTW: I think, the problem is not, that the excerpt is not used, but the automatically generated excerpt from full text is not truncated. If I enter a short exerpt manually, everything looks fine to me. -
AuthorPosts
