Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question