[ This post is now largely if not entirely redundant now thanks to WordPress 3 menu options ]

Problem: WP titles are too long to fit in your navigation.


Make the title short enough to fit in the navigation and then add a Custom Field into your post (in the example bellow it is set as “heading”) then edit your template file to render the longer version (“heading”) on the page.


In the Loop of  your template swap out

<h1><?php the_title(); ?></h1>
<?php the_content(); ?>


<h1><?php// If has a custom field of heading ; then use that:
$customField = get_post_custom_values("heading");
if (isset($customField[0])) {
echo $customField[0];
} else {
} ; ?></h1>
<?php the_content(); ?>

Hat-tip: Smashing Magazine

Last updated on 5th September 2018