Support » Plugin: Related Posts Thumbnails Plugin for WordPress » Solution for no excerpt

  • Resolved Webfolio Webdesign

    (@webreneszansz)


    Hi,

    We use also some membership plugin on the website to create paid content, therefore it is important to leave blank the excerpt field in case of some articles.

    Is it possible to show in this case also some text in the related post list, after the title of the related article? For example, the beginning of the article or some default text.

    Thank you very much!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Arslan

    (@wparslan)

    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 🙂

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    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!

    Plugin Support Arslan

    (@wparslan)

    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.

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    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!

    Plugin Support Arslan

    (@wparslan)

    Hi @webreneszansz ,

    We have noted your request and will get back to you once it is discussed in an internal meeting.

    Thank You 🙂

    Thread Starter Webfolio Webdesign

    (@webreneszansz)

    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' );
    Plugin Support Arslan

    (@wparslan)

    Hi @webreneszansz

    Your request is noted and forwarded to the development team.

    Thank You.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Solution for no excerpt’ is closed to new replies.