Forums

[resolved] tripple dots in Search results? (2 posts)

  1. Jaja..
    Member
    Posted 6 months ago #

    I've got a question thats frustrating me right now..

    I've made a website that involves a regular blog format pages and i made one custom post type. (posts) and called it news items.

    - Posts
    - News items (also posts format)
    - Pages

    All working great only one little problem when i search inside my own website the results are correct but only the pages and News items results have 3 dots (...) behind the Excerpts text and before the More... link gets in place.

    Anybody some idea how to fix this?
    I have search all template files to see where i maybe made a mistake inside the loop or maybe coded a different <?php the_excerpt(); ?> but they are all the same.

  2. Jaja..
    Member
    Posted 6 months ago #

    # Problem Solved :S

    Inside the functions.php find this line of code

    function twentyten_auto_excerpt_more( $more ) {
    	return '&hellip;' . twentyten_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );

    And delete the &hellip; inside the code and save it!
    Just like this..

    function twentyten_auto_excerpt_more( $more ) {
    	return '  ' . twentyten_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' )

    Hope this will be useful for other people in the future!

Reply

You must log in to post.

About this Topic