Topic: removing […] from posts without content | WP Masonry Layout

removing […] from posts without content

Home Forums Lite Version removing […] from posts without content

This topic contains 3 replies, has 2 voices, and was last updated by  Masonry Guy 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3318 Reply

    Erin

    Hello, I saw the other post about how to hide the excerpt from appearing. I added the code you provided to remove the excerpt but now […] is appearing after the post title. Is there any way to remove this? Thank you in advance.

    #3333 Reply

    Masonry Guy
    Keymaster

    Hi Erin,

    Can you please send me your site url ?

    Thanks

    #6706 Reply

    Oliver Ishmael

    Hello Masonry Guy,

    Love your plugin.

    I am also having the same problem as the above poster. Please can you tell me how to remove the […] from posts where the excerpt has been set to 0:

    
    add_filter('excerpt_length', 'my_excerpt_length');
    function my_excerpt_length($length) {
       if (is_tag()) {  
            return 100;
        } else {
            return 0; //For the workshops page (WP Masonry Layout Plugin)
        }
    }
    

    Many thanks

    #6711 Reply

    Masonry Guy
    Keymaster

    Hi Oliver,

    In that case you need to add this filter as well.

    function trim_excerpt($text) {
    return rtrim($text,'[…]’);
    }
    add_filter(‘get_the_excerpt’, ‘trim_excerpt’);

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: removing […] from posts without content
Your information: