custom pages (2 posts)

  1. cybershot
    Posted 6 years ago #

    I am trying to create custom pages for my template. I know how to create a page in the admin area and then tell wordpress to use the custom theme then just create the page in the admin area and edit it using wordpress. But what I want to know is how I can make the page like you would any regular html page. like make a new file called services.php and include the header, sidebar and footer and then design the page normally. I have been trying but when I try to include the header, sidebar, and footer like this

    <?php get_header(); ?>

    I get errors. It doesn't work and I don't know why. can anyone shead any light on this?

  2. cybershot
    Posted 6 years ago #

    well i found the answer. I created a new file. named it what I wanted to name it then added this code to the top

    Template Name: services

    place my code for the page here. Then went into the admin area, created a new page and made sure to select the services under the page template option.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.