/*
* Split and wrap title
*/
function get_split_title($postID) {
$title = get_the_title($postID);
$lines = explode(' – ', $title);
$output = false;
$count = 0;
foreach( $lines as $line ) {
$count++;
$output .= '<span class="line-'.$count.'">'.$line.'</span> ';
}
return $output;
}
<?php echo get_split_title($post->ID); ?>
<a href="<?php the_permalink(); ?>"><?php $title = the_title('','',FALSE); echo substr('', 0, 40), $newtitle = str_replace(" | ", "</br>", $title);?></a>
There are currently 1 users browsing this thread. (0 members and 1 guests)