limit length of displayed text get_the_title
-
Hello,
Using Arras 1431 and WP3, I have used the following code in tapestries.php in a post summary on the main page.
$postheader .= ‘<abbr class=”published” title=”‘ . get_the_title() . ‘”>’ . get_the_title() . ‘</abbr></span>’;
Does anyone know how I could amend this code, so it displays only the first two words of the title?
this is the corresponding css
.posts-default .published { text-transform: uppercase; float: left; margin: 5px 5px 5px; width:111px; font-size: 10px; color:#CC9; border-bottom: none; overflow: hidden;}
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘limit length of displayed text get_the_title’ is closed to new replies.