Forums

[resolved] Which .php is used to control a New Static Page? (5 posts)

  1. talha8877
    Member
    Posted 2 years ago #

    If page.php is used to generate the content, it's not right for me. My Static Page posts don't appear because there's no #content or #footer exists in the page.
    Please check the source for http://www.gumbetbeachresort.com

  2. jonimueller
    Member
    Posted 2 years ago #

    The page.php template is used to generate WordPress PAGE content (static pages).

    If you want to use one of your WP Pages as your web site's home or front page, you have to tell WordPress that in Settings.

  3. talha8877
    Member
    Posted 2 years ago #

    Thanks, but I've done that and still no content is pulled via page.php.

  4. TM3909
    Member
    Posted 2 years ago #

    In one of your template files (mycustompage.php) you should have this:

    /*Template Name: My Awesome Custom Page*/

    Then, in the WP Admin, edit the page you want to load. Under the "Publish/Update" button, you should see "Template" with a drop down displaying several files, including My Awesome Custom Page.

  5. talha8877
    Member
    Posted 2 years ago #

    Thanks. For some reason my custom page template was not working and I created a new template and pasted the code in page.php, now it works.

Topic Closed

This topic has been closed to new replies.

About this Topic