Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7822461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:55:52+00:00 2026-06-02T07:55:52+00:00

im using wordpress as a CMS for my personal portfolio website. i want to

  • 0

im using wordpress as a CMS for my personal portfolio website. i want to be able to create different pages that have slightly different variations of the header etc.

after looking around i realised that i can use pages.php and template pages however i do not understand how they work.

for instance currently i made a contact page via creating a new page on the dashboard and doing the html there. i took the permalink and put it inside an ‘a’ tag that sits in my header. this then goes to that page fine but i want my header to be different.

i guess basically i am confused because the instructions i have looked at do not explain how the page is displayed.
in a page template do i do this?

<?php
/*
Template Name: [your page name here]
*/
?>
<?php include(“header_new.php”); ?>

<?php get_footer(); ?>

but what confuses me is how does wordpress know were to put the page?? obviouslly for the index you do a post loop. but all i want is my page to be displayed.

am i missing something like this?…

<?php
/*
Template Name: [your page name here]
*/
?>
<?php include(“header_new.php”); ?>
// POST PAGE FUNCTION HERE>>>>????
<?php get_footer(); ?>

my current theme can be viewed here

hope this is not something obvious that i have missed. many thanks for taking the time to help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:55:53+00:00Added an answer on June 2, 2026 at 7:55 am

    First take a look at this page template (only an example)

    <?php
    /*
    Template Name: Contact Page
    */
    ?>
    <?php get_header('contact'); ?>
    
        <div id="post-wrap" class="full-width-wrap">
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <h1 class="page-title"><?php the_title(); ?></h1>           
            <?php the_content(); ?>
            <?php endwhile; ?>
            <?php endif; ?> 
        </div>
    
    <?php get_footer(); ?>
    

    If you save above code in a file and name it page-contactpage.php and keep/save it inside your theme’s root folder (where index.php is) then it’ll be one of your template and you can select this template from template combo box (located at the right side in the page attribute meta box) when you are creating a new page from admin->Add New Page. If you create a page with this template then your page will use this template instead of the default page template.

    Notice the line get_header('contact'); that is a different header I’ve used instead of the header.php and that header have to be available with name header-contact.php (may be with different content) in the same folder. Now your contact page will use this template with a different header if you select this template when creating it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using wordpress for my website like a CMS, also have installed ALL
I am using wordpress as my cms and building a website. I use Graphene
I just started out using wordpress as a CMS. On the site I have
I'm using WordPress as a CMS, and I want to extend one of its
1) I'm using WordPress as a CMS for a site. Therefore I want to
I'm using a cms (Wordpress) and have a gaggle of external stylesheets I'm loading
we want to build a website that have some forms (including image attachments, info,
I am using a plugin for wordpress called CMS its a plugin that makes
I am creating a multilingual website using wordpress as CMS. i am using qTranslate
I'm implementing our school's website using WordPress as CMS. So far, it works well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.