# Registering a page within a custom theme

**URL:** <https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435>\
**Category:** WordPress\
**Created:** [November 30, 2016, 2:19pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435 "2016-11-30T14:19:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![24degrees](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/24degrees/32/136_2.png) [@24degrees](https://forum.pinegrow.com/u/24degrees)\
**Post date:** [November 30, 2016, 2:19pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435/1 "2016-11-30T14:19:33Z")

</div>

Hello everyone,

I’m creating a theme that has several ‘fixed’ pages, that will never change and are not dynamic what so ever.

For example, I create an about.html page and I want it, as soon as the theme gets installed, that the page is registered as a new page within ‘pages’ in WordPress.

Is this best done using register\_post\_type?

I’m a bit confused here.

EDIT: I think I’m missing a point here. Should I create a Custom Post Type and then create a page template for it?

thanks for your help

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [November 30, 2016, 2:39pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435/2 "2016-11-30T14:39:31Z")

</div>

Hi @24degrees I think this might be of help to you and what you are trying to achieve [Custom Page Templates in Pinegrow WP](http://docs.pinegrow.com/wordpress-themes/custom-page-templates)

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [November 30, 2016, 2:43pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435/3 "2016-11-30T14:43:49Z")

</div>

This might also be of help [http://docs.pinegrow.com/wordpress-themes/how-to-use-wordpress-pages-and-posts-templates](http://docs.pinegrow.com/wordpress-themes/how-to-use-wordpress-pages-and-posts-templates)

This also has great information relating to [creating page templates for Wordpress](https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/) from the Wordpress Theme Developer Handbook and is well worth a read, I should probably have posted this first as the others are Pinegrow based but still valid information.

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [November 30, 2016, 3:00pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435/4 "2016-11-30T15:00:21Z")

</div>

And one last one for good measure just in case you don’t have enough reading with these. This one is very helpful as it gives examples of situations where you might use a custom page for a specific and also how to do it (including screenshots).

**From Smashing Magazine**  
[A Detailed Guide To WordPress Custom Page Templates](https://www.smashingmagazine.com/2015/06/wordpress-custom-page-templates/)

---

<div class="post-metadata">

**Author:** ![24degrees](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/24degrees/32/136_2.png) [@24degrees](https://forum.pinegrow.com/u/24degrees)\
**Post date:** [November 30, 2016, 3:15pm UTC](https://forum.pinegrow.com/t/registering-a-page-within-a-custom-theme/435/5 "2016-11-30T15:15:16Z")

</div>

Rob?

You’re me (WordPress-)hero. Thanks, this helped a lot !!

It’s all about using custom post types instead of pages and, never forget, rebuild the permalink structure.

Now I get: [www.mydomain.com/customPostTypeName/](http://www.mydomain.com/customPostTypeName/)

Thanks !!!
