• I want to use the Excerpt feature. I have configured it under Layout – Blog – Excerpt, but why is the full content of my posts still being displayed on the homepage?

Viewing 10 replies - 1 through 10 (of 10 total)
  • ying

    (@yingscarlett)

    Hi there,

    At dashboard > setting > reading, what you set for For each post in a feed, include? Full content or excerpt?

    Let me know 🙂

    Thread Starter jwboggm

    (@jwboggm)

    There are 2 options : Full text, Summary. My setting is checked as Summary

    Alvind

    (@alvindcaesar)

    Hi there,

    Can you share the link to your site where we can view the excerpt?

    Thread Starter jwboggm

    (@jwboggm)

    My website’s URL is http://www.freedombird.co.kr

    Thread Starter jwboggm

    (@jwboggm)

    I solved this issue by using ‘more tag’ feature.(https://docs.generatepress.com/article/using-the-more-tag/) But do I have to set the feature every time I write a post? If so, it would be too troublesome, and I’m worried that the previewed amount of text will be inconsistent across posts, making it look messy.

    • This reply was modified 1 year, 4 months ago by jwboggm.

    Hi there,

    Hanja, Hanzi and Kanji text is see as individual characters and not words by the default WordPress excerpt function. To fix that – see the following article:

    https://docs.generatepress.com/article/fixing-wordpress-excerpts-word-count-in-other-languages/#chinese

    The Chinese option “should” work in this instance.

    Let us know

    Thread Starter jwboggm

    (@jwboggm)

    Thank you for letting me know. I haven’t tried applying the solution you provided yet, but could you also let me know if there’s an option for Korean?

    ying

    (@yingscarlett)

    We don’t have one for Korean, I wrote this and can you give it a try and let me know if this works.

    function dez_filter_korean_excerpt( $output ) {
    global $post;

    // Check if the content contains Korean characters
    $korean_output = preg_match_all("/[\x{AC00}-\x{D7AF}]+/u", $post->post_content, $matches);
    if ( $korean_output ) {
    $output = sprintf(
    '%1$s <p class="read-more-button-container"><a class="button" href="%2$s">%3$s</a></p>',
    mb_substr( $output, 0, 50 ) . '...',
    get_permalink(),
    __( 'Read more', 'generatepress' )
    );
    }

    return $output;
    }
    add_filter( 'get_the_excerpt', 'dez_filter_korean_excerpt' );
    Thread Starter jwboggm

    (@jwboggm)

    Thank you, but I downloaded the Code Snippets plugin and applied the code you provided, yet the issue hasn’t been resolved. I think I’ll have to manage with the ‘more tag’ feature for now or look for a different theme. Thank you for your concern.

    • This reply was modified 1 year, 4 months ago by jwboggm.
    ying

    (@yingscarlett)

    No problem 🙂 Hope you can find a theme that has specific support for Korean.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Excerpt Issue’ is closed to new replies.