Home › Forums › Lite Version › removing […] from posts without content › Reply To: removing […] from posts without content
August 11, 2015 at 2:05 pm #6706
Guest
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