Make WordPress Core

Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#40023 closed enhancement (wontfix)

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

Reported by: eclare's profile 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
5 years 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
5 years 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.