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

  • SEARCH
  • Home
  • 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 8957639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:02:30+00:00 2026-06-15T15:02:30+00:00

Ive created my first wp-theme, my front page is dynamic with posts etc. I

  • 0

Ive created my first wp-theme, my front page is dynamic with posts etc. I want to create a page that is diffrent than the main one. A page template that has static content as the main content and posts on the side. example; I want to create an about us page and have a static text that tells the audience what we do but I also want posts on the side. Ive created the dynamic part of the page but I’m having trouble with the static part.

This is how the dynamic part looks like:

    <div class="latest-posts eightcol">
      <?php  the_post(); ?>
         <article class="post">
            <h2><a title="<?php the_permalink(); ?>"> <?php the_title(); ?></a></h2>

    <div class="entry-meta links-turquoise">
      <?php the_time('F j, Y'); ?> &mdash;


           <span class="author"> <?php the_author(); ?>utvecklare</span>
              </div><!-- .entry-meta .links-turquoise -->
      <div>
         <?php the_content(); ?>
            </div>
         </article>

      </div><!-- .latest-posts .eightcol --> 

What I dont know how to write is the static part. I want to create this template so that I can apply the same layout to more then one page.

I hope you understand what I’m looking for.
Thank you

  • 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-15T15:02:31+00:00Added an answer on June 15, 2026 at 3:02 pm

    to create a page template all you need is to add the name of the template as a comment in the top of the template file like so:

    <?php 
    
    /* Template Name: Contact us */
    
    //code
    

    It will then be recognized by your wordpress editor, and you’ll be able to choose it as a page template

    Contact Us template

    You can load the page static content before you load the posts, that is before the loop, simply by calling the_post() and the_content() since the default post is the page that was loaded. (try var_dump($post) and see for yourself). In case you want to call it after the loop you can use wp_reset_query(); to return to the starting point

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

Sidebar

Related Questions

I'm trying to create my own theme, called Conservatoire. For that I've first added
Ive successfully created my first wp-theme but I'm having a little problem, I'm sure
I'm attempting to create my first WCF service. I've created the service and now
First.. here are the two tables I've created (sans irrelevant columns).. CREATE TABLE users_history1
Ive created a function which returns all the obserables items in my html page.
I've created my first (BIG) LayoutControl and I'm puzzled by it's mouse wheel scroll
I have some problems with my first Open Graph custom action: I've created a
Hi to everyone this is my first ask on stackoverflow I've created a simple
This is the first Python script I've tried to create. I'm reading a xml
this is my first attemp to create a frontController and I've come over some

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.