About

This function will return the title of a post for a given post ID.

If the post is protected or private, the word "Protected: " or "Private: " will be prepended to the title. It can be used inside or outside of The Loop. If used outside the loop an ID must be provided.

Reference:

get_the_title() (Codex)

history | excerpt history