WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I show the title of post id 55 outside the loop? (3 posts)

  1. danpoynor
    Member
    Posted 5 years ago #

    I'm trying to show a page title outside the loop and use it as a column header for it's child pages.

    I've been searching through the forums and codex but can't seem to find the answer.

    Any help appreciated.

  2. MichaelH
    Member
    Posted 5 years ago #

    <?php
    $title = get_the_title(55);
    echo 'this is the title for page id=55 ' . $title;
    ?>
  3. MichaelH
    Member
    Posted 5 years ago #

    Of course wp_list_pages('title_li=&include=55&depth=1') would also work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.