• 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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

    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
    */
    ?>

    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

    Thread Starter haydenhancock

    (@haydenhancock)

    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.

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

    Thread Starter haydenhancock

    (@haydenhancock)

    https://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.

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

    Thread Starter haydenhancock

    (@haydenhancock)

    Okay, So how do I call the page?

    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

    * https://codex.www.ads-software.com/Template_Tags/wp_list_pages

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom Pages’ is closed to new replies.