Replace – with – in post title
-
Hi!
How to replace a short dash (-) with a long dash (–) in the post title?
I found only this (changed inside posts):
add_filter( 'the_content', 'wpm_tire' ); function wpm_tire( $content ) { $content = str_replace( "--", "—", $content ); $content = str_replace( " - ", " – ", $content ); return $content; }
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Replace – with – in post title’ is closed to new replies.