Jump to content

How do Wordpress custom page template work?


dirtymint

Recommended Posts

Hey guys,

 

Wordpress has the ability to recognize a custom page and make it available to select it and use when you are logged in in the pages section of the admin ui. To make it work you add this:

<?php
/*
 * Template Name: My Custom Page
 * Description: A Page Template with a darker design.
 */

// Code to display Page goes here...

My question is how does wordpress scan and find these files and then show them in a drop down menu on the pages tab of the admin? Is it done with regular expressions?

 

Many thanks for any help!

Last time, I got my website from arm InfoTech web Development Company. Until now, I don’t create website based on word press. But, you provide how can create custom page website using word press. I similar your nice work. But, some people said don’t create website based on word press. Because there is can’t looking security to our site. Is really or not?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.