This topic has 6 replies, 2 voices, and was last updated 9 years by Abe.

  • Author

    Tagged: 

  • #37506
     HDcms
    Participant

    Hello,

    The display of the excerpt is properly in the post list.
    I am fully display the beginning of a full article page

    Have you a link to that function or help.
    I tried get_the_excerpt (); but it does not work
    I tried https://archived.seventhqueen.com/ but not seen a reply within a FAQ

    Regards

    #37512
     Abe
    Keymaster

    what do you need? the function is located in wp-content/themes/kleo/lib/theme-functions.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #37516
     HDcms
    Participant

    Hi,

    This article http://0cd854a9fd.url-de-test.ws/test-avec-acf-communs-videos/ has a text in the excerpt.
    I see from the above list but I can not display this theme on a full article

    In functions.php
    echo $excerpt;
    kleo_excerpt();

    @+

    #37855
     Abe
    Keymaster

    on a post page it displays the full content. If you need something to show on posts list then add text in the excerpt section from the post edit page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #37863
     HDcms
    Participant

    Hi,
    show on posts list -> Ok
    show on post (http://0cd854a9fd.url-de-test.ws/test-avec-acf-communs-videos/) ->Non ok

    I have tried in functions.php :
    echo $excerpt;
    kleo_excerpt();

    can you help me a little more because I did not understand what you tell me
    sorry
    Regards

    #38280
     HDcms
    Participant

    HI,

    Well I got there but the page display time can be slow 🙁
    Do you have a better solution (especially with kleo function)! ??

    COPY CODE
    add_filter( 'the_content', 'my_the_content_filter', 20 );
    function my_the_content_filter( $content ) {
        if ( is_single() )
            $content = get_the_excerpt() .$content ;
        return $content;
    }

    Regards

    #39143
     Abe
    Keymaster

    You are using it wrong since you want to display the excerpt in the single post view which is not the intended way of doing that. Excerpt should be used in archive pages so you have a small summary of the whole post content.
    But if you want that then your solution is fine

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?