C
C
Chasing2014-08-12 18:07:26
CMS
Chasing, 2014-08-12 18:07:26

How to add unique pages in wordpress?

Hello everyone
I made up a few pages and decided to put it on wordpress.
I named the main one as always index.php, but what to do with the rest of the pages?
Add pages via admin panel and add items to them?
Will creating page.php help the cause?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2014-08-12
@andrhohlov

You can make a unique page template like shablon.php which starts with the following lines:

<?php
/*
Template Name: Название шаблона
*/
?>

Then create a page in the Wordpress admin panel and select the created template for it.
The page will give at least a URL, but if you wish, you can use its title in the template, etc.
Read also about template priorities (page.php for example is more priority for pages than index.php)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question