WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 11 months ago

#40024 new enhancement

Include CPT archives in the menu cutomizer

Reported by: eclare Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Menus Keywords: needs-design
Focuses: administration Cc:

Description

If we create a new Custom Post Type and go to the menu customizer, we can insert links to particular posts of that type.

What we can't easily do is insert a link to the Custom Post Type archive page.

Example: we create a Movies CPT. We want to add a link to the list (archive) of all Movies to the menu. We can't do that unless we use the custom URL field (and the URL is not provided anywhere in the admin panel, only in the CPT registering code itself).

Enhancement needed: add a section which lets you link to archive pages for CPTs.

Suggested name for the box: "Content archives" or "Custom content archives".

Change History (4)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


11 months ago

#2 @talldanwp
11 months ago

  • Component changed from Editor to Menus
  • Keywords needs-design added
  • Milestone changed from Awaiting Review to Future Release

Hi @eclare, thanks for submitting this suggestion, and apologies for the lack of a response.

Your ticket was discussed in a triage meeting in slack (https://wordpress.slack.com/archives/C02RQBWTW/p1573103735072200, slack account required to view).

It seems like a valid request. I've moved the ticket into the correct component, and added the needs-design keyword, so a designer can take a look and provide some feedback.

#3 @eclare
11 months ago

Great, thanks!

#4 @joyously
11 months ago

This type of link does not exist for Posts (or Pages).
This type of link does exist for taxonomies (like a specific category archive page).
For custom post types, there is a parameter when registering the type, for whether to have CPT archives, so that would need to be checked.

Note: See TracTickets for help on using tickets.