E
E
Egor Khramov2020-08-01 19:04:55
WordPress
Egor Khramov, 2020-08-01 19:04:55

Wordpress: Why is one of the menu items redirecting to the main page?

5f2590828d21b083708219.png
All the pages I've created work when the menu is clicked, but the Works page doesn't. It was on this page that I registered a new post type and linked it to the works page. In order for these pages to appear, I read on wp-kama that you need to save changes to your permalink settings. Having changed the settings, I decided to check the performance of the works page from the menu: when pressed, it redirects to works ( wordpress-dev:8080/works ), but the index.php page is displayed.
Before the permalink settings were saved, everything worked, except for additional pages that could be accessed from the works page.
I'm learning wordpress for the second day, I hope for help

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Litvinenko, 2020-08-01
@khramov101

If I understood correctly, then you have registered a new record type works. In order to make a page on which to display all records of the works type, you need to make a template archive-works.php

V
Vlad Bazarov, 2020-08-01
@vlad1337

Check if everything looks identical to you.
5f2593c654355426527038.png

E
Egor Khramov, 2020-08-01
@khramov101

5f25981b21603164021273.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question