• Resolved RenFromPenn

    (@renfrompenn)


    Hi,

    I have the previous and next posts displaying at the bottom of my posts. Now, the problem is that some the post titles are too long and throwing everything off. Is there a way to truncate the titles so that, let’s say, only the first 50 characters appear?

    Here is the code that I am using:

    <div class="navigation" style="padding-top: 15px; padding-bottom: 10px;">
    	<div style="float: left;"><?php previous_post_link('&laquo; Previous Post: %link', '%title'); ?>
    </div>
    	<div style="float: right;"><?php next_post_link('Next Post: %link &raquo;') ?></div>
    </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Truncate Titles’ is closed to new replies.