I am using this syntax to remove excerpts on Custom Taxonomy archive listings and it works great:
add_filter( 'excerpt_length','remove_excerpt', 1000 );
function remove_excerpt( $length )
{
if ( is_tax('country') ) {
return 0;
}
return $length;
}
However, I also have two other Custom Taxomoies....
Is this correct to add the other two like this?
add_filter( 'excerpt_length','remove_excerpt', 1000 );
function remove_excerpt( $length )
{
if ( is_tax('country') ) {
return 0;
}
elseif ( is_tax('us_state') ) {
return 0;
}
elseif ( is_tax('cities') ) {
return 0;
}
return $length;
}
I want the same result for all three...
Just want to make sure I am doing it correctly.
Thanks