Codex tools: Log in / create account
Pass this function a post id and it will return the title of the post. If the post is protected or private, this will be noted by the words "Protected: " or "Private: " prepended to the title.
<?php echo get_the_title(ID) ?>
Simple breadcrumb trail for pages, two levels deep.
<div class=\"breadcrumb\">
<?php
// if there is a parent, display the link
$parent_title = get_the_title($post->post_parent);
if($parent_title != the_title(,,false)) {
echo ('<a href=\"' . get_permalink($post->post_parent)
. '\" title=\"' . $parent_title . '\">' . $parent_title
. '</a> » '); }
// then go on to the current page link
?>
<a href=\"<?php the_permalink() ?>\" rel=\"bookmark\"
title=\"<?php the_title(); ?>\"><?php the_title(); ?></a>
» </div>
Values
the_ID, the_title, the_title_attribute, single_post_title, the_title_rss, the_content, the_content_rss, the_excerpt, the_excerpt_rss, previous_post_link, next_post_link, posts_nav_link, the_meta
This page is marked as incomplete. You can help Codex by expanding it.