WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 17 months ago

Last modified 17 months ago

#40023 closed enhancement (wontfix)

Include CPT & term archives in the inline link insert search field

Reported by: eclare Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: administration Cc:

Description

When we insert a link using the inline modal, we can search for pages, posts & custom post type pages.

What the search feature of this field does NOT find is:

  • Custom Post Type archive pages (like "movies" for a Movie CPT, with a list of all movies)
  • term archive pages (like "Horror" for a normal post category or for a custom post type category)

The most common scenario: user wants to link to a category page. The link modal doesn't suggest it.

Enhancement needed: the search feature of the add link field should also suggest CPT archives & term archives.

Change History (2)

#1 @pento
17 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Thank you for the suggestion!

At this point, I don't see this being implemented: it would be fairly tricky to do it right, and I haven't seen any other requests for this behaviour.

#2 @knutsp
17 months ago

Term archive pages has a template tag, and is listed as a group in the menu editor, so that can't be tricky. Looping trough public post types and get_post_type_archive_link for each that has_archive can't be very tricky either.

Note: See TracTickets for help on using tickets.