WordPress.org

Ready to get started?Download WordPress

Forums

Custom Pages (11 posts)

  1. haydenhancock
    Member
    Posted 7 years ago #

    I've created a custom page which calls the header and footer files with custom html/php in the body. The file is called shows.php. I want to be able to link it from my navigation bar. How do I do this? Thanks in advanced.

  2. drmike
    Member
    Posted 7 years ago #

    Actually you create a Page (ie Dashboard -> Write -> Write Page) with the Page template.

    You can read more about them here.

    Hope this helps,
    -drmike

  3. Meyithi
    Member
    Posted 7 years ago #

    Perhaps define your custom page as a template and create a new page using your new template within the admin pages. WordPress would then recognise this as a page.

    Add the following to the top of shows.php to define it as a template:-


    <?php
    /*
    Template Name: Custom Page
    */
    ?>

  4. Root
    Member
    Posted 7 years ago #

    Well if there is php in there a new WP page is not going to do it. Least not without the WP exec plugin. You might want to make a template

  5. haydenhancock
    Member
    Posted 7 years ago #

    Creating a page using the WP thing makes it look like a post. I don't want that. I want to call the normal header and footer files and then put custom html in the body. I do have a template already.

    I've already created a legit php file that WP can read. I want to be able to link this custom file.

  6. moshu
    Member
    Posted 7 years ago #

    You can have ten thousand Page templates...
    How they look like? - it depends on how did you design them.

  7. haydenhancock
    Member
    Posted 7 years ago #

    http://www.zaney.net Again, the question isnt about how to create the templates. I want to know how I can link my custom PAGES.

    Mosha, I want to link my custom page like you have your hosting page.

  8. Root
    Member
    Posted 7 years ago #

    Well the question isnt how to link a page at all. Its how to call a template.

  9. haydenhancock
    Member
    Posted 7 years ago #

    Okay, So how do I call the page?

  10. moshu
    Member
    Posted 7 years ago #

    1. I create a template (if needed).
    2. I create new Page using that template - or the default (page.php), depending on my nneds.
    3. I link to those Pages either by
    a) using WP's template tag - wp_list_pages*
    b) or adding manually links to Pages: using their ID# or the page-slug

    * http://codex.wordpress.org/Template_Tags/wp_list_pages

  11. Root
    Member
    Posted 7 years ago #

    I mention this for the sake of clarity for other readers. In WP - as in everything else in life - words have very specific meanings. WP has pages. It also has templates. It also has something else - page views I guess you could call them. Folk will get better answers and be able to follow the replies better if they do their best to stick with the terminology. We are all guily of using the generic word *pages* but here it is something very limited and very specific.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.