S
S
Sergey2018-05-06 11:18:38
HTML
Sergey, 2018-05-06 11:18:38

How to create pages in wordpress template folder?

Here in vp to create a page you need to create a page-name.php file in the root of the template and then you write this name in the admin panel in the shortcut.
And here is how to create pages in a folder, for example, so that the path is:
site-name.com/videos/index.php
site-name.com/videos/video1.php
site-name.com/videos/video2.php
and so on. ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ainur Valiev, 2018-05-06
@vaajnur

at the root you create videos/index.php

O
Orkhan Hasanli, 2018-05-06
@azerphoenix

You can go the other way. I won't say that this is a good idea, but the method of implementation will do ....
You need such a url /videos/index.php, and not the fact that such a page exists in videos/index.php, etc.
Plugins are suitable for this:
https://ru.wordpress.org/plugins/custom-permalinks/
https://wordpress.org/plugins/dot-php-pages/
You can also create WP pages without violating the WP "principles", from the admin panel and set them any url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question