Which WordPress function outputs the current post title?

WordPress Fundamental Easy

WordPress Fundamental — Easy

Which WordPress function outputs the current post title?

Key points

  • the_title() is used to display the post title
  • get_the_title() is used to retrieve the post title but not display it
  • echo post_title() and display_title() are not valid WordPress functions for outputting post titles

Ready to go further?

Related questions