Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
new template in wordpress is not displayed under page attributes -> template

i want to integrate several layouts into my theme. so far I have solved it via page.php and page-blue.php because I saw it that way in tutorials. unfortunately the other template is not displayed under the page attributes. i don't see the error. even if i choose a different theme the attributes do not appear. what am I doing wrong?

it should look like this

it should look like this

this is how it looks

this is how it looks

this is the page.php

this is the page.php

this is the page-blue.php

this is the page-blue.php

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Change the name of the template, page is reserved word, also create brand-new file with file name other than page.php, which is also reserved file name. And, for god's sake, name your template files in a way they mean something, self-explanatory.

Example for dummies:

<?php
/*
* Template Name: Some Template
*/

And the file name of the template should be some-template.php inside your theme's folder!

Read more

over 4 years ago · Santiago Trujillo Report

0

pls Use This code

<?php
/*
* Template Name: page-blue
* Template Post Type: post
*/
get_header();
?>

instead of this

<?php
/*
* Template Name: page-blue
*/
get_header();
?>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!