Opened 7 years ago
Closed 7 years ago
#44522 closed defect (bug) (invalid)
Distorted output when using the_title()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
I have a post with this title: "This is a test title"
.
If I use the_title();
the output is:
«This is a test title»
if I echo
the title with $post->post_title
the output is:
"This is a test title"
Even If I inspect the page, instead of "
I see «
.
I've also change the font-family
to be Arial
in order to preclude errors with the font.
I've checked in the_title()
and get_the_title()
and I can't seem to find anything that could cause the distortion of the output.
Attachments (1)
Change History (2)
#1
@
7 years ago
- Component changed from Posts, Post Types to Formatting
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Hello @konmavrakis, welcome to WordPress Trac!
This is produced by the wptexturize()
function which is hooked into the_title
. Take a look at https://developer.wordpress.org/reference/functions/wptexturize/ to learn more about what wptexturize()
does.
The output, top with the_title(), bottom with $post->post_title