WP inserting nbsp; characters for last space in post titles
-
Site I’m working on is https://messengers.faith
Note that one of the posts in the loop on the homepage has a problem with word wrapping:
I looked at the source and noted that WP is swapping in an nbsp; character instead of my intended space character! I wouldn’t have caught it if not for the line wrapping blunder.
If you compare the code in the other post titles, you’ll see that it appears to consistently be the last space in each string (crazy-weird huh?).
I don’t know if this is somehow related to my theme or a plugin (seems kind of weird if that were the case, but anything’s possible), or a WordPress core concern. I have read some stuff about nbsp; characters possibly having something to do with TinyMCE… E.g. here and here.
I looked into my theme files a bit more, and everything looks normal. The theme is just calling this in the single.php file:
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
Anyone know what might be going on here? Seen it before? Know of a fix or a clue? Would be great to get it resolved. ??
Thanks friends!
- The topic ‘WP inserting nbsp; characters for last space in post titles’ is closed to new replies.