Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When I type an ellipsis composed of three separate dots ..., WordPress displays the pre-composed triple-dot glyph instead.

Is there any way to prevent WordPress from substitution the three dots?

share|improve this question
    
Just out of curiosity: Where do you need three dots? –  toscho Mar 12 '12 at 3:42
    
Just out of personal preference... There are also several style guides that recommend ... instead of The ellipsis character did not exist before the advent of computers and in my humble opinion should not be used outside of a few specific use cases. –  Philip Seyfi Mar 12 '12 at 19:51
    
How wide an ellipsis is depends on the font. Semantically it is one character, hence the separate Unicode code point U+2026. It is also easier for automatic translation tools and screen readers if you use the special character. –  toscho Mar 12 '12 at 19:57

2 Answers 2

That conversion - among others - is caused by the wptexturize() filter being applied to the_content().

The sledge-hammer approach to preventing wp_texturize() being applied to the_content() is simply to remove the filter, like so:

<?php
remove_filter( 'the_content', 'wptexturize' );
?>
share|improve this answer

Three dots are converted to the typographically correct ellipsis … in wptexturize(). You can disable it in many cases, see my plugin Disable Wptexturize.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.