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

Reply To: removing […] from posts without content

Reply To: removing […] from posts without content

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

#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