Confict with Title Line Break Codes
-
I have some custom codes which convert ” | ” into <br /> tags in titles
I found out when I enabled this plugin, if the character just before or after
| ” is a Chinese punctuation mark. My codes won’t work.Any idea and solutions? Thanks a lot~~
function line_break_for_posts_filter($title){ return str_replace(' | ', '<br />', $title); } add_filter('the_title', 'line_break_for_posts_filter');
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Confict with Title Line Break Codes’ is closed to new replies.