R
R
Roman Serkov2018-03-25 23:07:59
WordPress
Roman Serkov, 2018-03-25 23:07:59

How to create a page in Wordpress?

In WP, I do not understand how to create a page correctly.
I created a navigation and in the navigation in the URL field (arbitrary link) I specify a link to the file that lies at the root of the topic and I get an error 404 or 500.
I tried to create a page (and specify not an arbitrary link but a page in the menu settings), but did not find where to edit this page.
I found an index.php file in the root of the WP with a connection to the index in the root of the theme, I tried to do the same only with another template, I got an error 500 (server error)

require( dirname( __FILE__ ) . '/wp-blog-header.php' );

Maybe you need to set up links somehow.
Please help or throw a link where you can read how to create a page with your code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Serkov, 2018-03-29
@Fobz

https://developer.wordpress.org/themes/template-fi... look at this paragraph.
In short, for a page created through the admin panel, you can create your own template by naming the file in the theme directory in a certain way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question