• Hi,

    If I have the following menu setup:

    Menu Option => About Us, when clicked on, would call my about-us.html file in my site directory and present this screen to the user.
    Menu Option => Promotions, when clicked on, would call my promotions.html file in my site directory and present this screen to the user.
    Menu Option => Photo Gallery, when clicked on, would call my photo-galler.html file in my site directory and present this screen to the user.

    Can I say, create a WP custom page say for my about-us.html file where I would call this about-us.php, add the necessary WP lines of code based on page.php file together with my html code. When ready, copy this new about-us.php file into my themes directory for the theme that I am using.

    My question here is now, based on this new WP custom page template that I’ve created and called about-us.php, can I then create a page in my Dashboard->Pages section called “About Us”, that would then point to this new about-us.php template, which would then allow the user can add/remove content to/from and display correctly when visiting the actual site.

    Is this possible?

    Can I also link this new “About Us” page to my sidebar menu option?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tfx2010

    (@tfx2010)

    Thanks batrachoid.

    Once I’ve done this, can I then use functions such as wp_list_pages() ?

    Yep.

    Thread Starter tfx2010

    (@tfx2010)

    Another question – when you apply a page to a page template, can you then add your own content within the page, that uses the page template?

    For CMS purposes, I need a means of allowing the wp-admin user to add/remove content, which would then be reflected within the main site, via the dashboard page.

    Is this possible?

    Thanks.

    Another question – when you apply a page to a page template, can you then add your own content within the page, that uses the page template?

    sure can

    Thread Starter tfx2010

    (@tfx2010)

    Based on this and would really appreciate if someone could pls provide an example. I have just created my “About Us” page that points to a about-us.php page template that has a empty div content<div id="content"></div>

    It is in here where I would like to grab the content that the wp-admin user enters in the dashboard About Us page and place this content within my <div id="content">[Dashboard About Us Page Content to go Here]</div>

    How can I achieve this?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating Custom Page Templates’ is closed to new replies.