Linebreak to title

https://wordpress.stackexchange.com/questions/33101/how-do-i-set-the-page-title-dynamically

add_filter('the_title', 'break_title');
function break_title($data)
{
    global $post;
    // where $data would be string(#) "current title"
    // Example:
    // (you would want to change $post->ID to however you are getting the book order #,
    // but you can see how it works this way with global $post;)
    return str_replace('|', '<br />', $data);
}

Leave a Reply

Your email address will not be published.