• Resolved loyukfai

    (@loyukfai)


    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');

    • This topic was modified 1 year, 5 months ago by loyukfai.

    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.