WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got my blog setup on a subpage (not the front page) and I'm using the template file home.php, how can I get the contents from the page editor onto this subpage?

If I change the title of the page it changes in the nav menu, but how can I get this to display on the page? (i.e. as the <h1> header)

share|improve this question
up vote 7 down vote accepted

Untested, but try:

echo get_the_title( get_option( 'page_for_posts' ) );

But it's somewhat hackish. Really, the page_on_front and page_for_posts are intended to be nothing more than placeholders for the site front page and blog posts index page.

share|improve this answer
hackish, yes, but it works! – JKirchartz Apr 4 '12 at 17:44
you should add some conditional check for the front page, just in case you decide later to move the blog back on the front :) – onetrickpony Apr 4 '12 at 17:51
I don't think it's hackish as I'm sure that's what it was meant for. – Giraldi Aug 3 '14 at 4:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.