Greetings @webreneszansz ,
We have already made a solution for this problem as well.
Related Posts Thumbnails will auto-generate excerpts if no excerpt were defined.
Thank you 🙂
Hi,
Great, thank you very much!
Until the go live could you please suggest some solutionf or the situation? I mean, if the excerpt is not filled, it would be great to add some default text to the related post list, instead of the excerpt.
Thank you very much!
Hi @webreneszansz ,
If you want to use a default text for all the thumbnails then it would be the same excerpt on every post so it is not a good view.
As said earlier, Related Posts Thumbnails will auto-generate excerpts from the content of the post if no excerpt were defined in the post
Thank You.
Hi,
I would like to use some default text only if the excerpt field is unfilled.
Can you please let me know, when will be this function availeble?
Or is there any bea vesion available for testing?
Thank you very much!
Hi @webreneszansz ,
We have noted your request and will get back to you once it is discussed in an internal meeting.
Thank You 🙂
Hi,
I tried to define default excerpt, with this code, but in vain, hthe plugin doesn’t load it.
Any idea to solve the problem?
Tahnk you very much!
function display_default_excerpt( $excerpt ) {
if ( has_excerpt() ) {
return $excerpt;
} else {
return __( 'There is no excerpt so displaying default excerpt.' );
}
}
add_filter( 'the_excerpt', 'display_default_excerpt' );
Hi @webreneszansz
Your request is noted and forwarded to the development team.
Thank You.