WordPress.org

Ready to get started?Download WordPress

Forums

DIsplay content for page-home.php (2 posts)

  1. techcastoni
    Member
    Posted 3 years ago #

    I've set the Home page in WordPress Admin to be the static homepage for my WordPress site and I have created a template file called page-home.php. I've used the function the_content() to echo the content of the page, but nothing appears. What am I doing wrong?

  2. Try renaming the file to front-page.php and it should be applied for the front page.

    There are some other methods too. See:
    http://codex.wordpress.org/Template_Hierarchy#Front_Page_display

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.