Skip to content

Navigation Menus: Add a bulk add screen for menu items #86179

Open

Description

@getdave

What

Building a Navigation Menu today means adding items one at a time, reopening the inserter for every single link.

This issue proposes a bulk add screen. People tick multiple Pages, Posts or other content and add them all in one action.

  • The main flow covers the common content types, such as Pages and Posts.
  • Less common types (categories, post type archives, media, custom links) sit behind a "More" option, so the main flow stays simple.
  • Bulk add also works inside a sub menu, so people can add a whole set of Pages to a dropdown at once.
A prototype showing the Add menu items modal with Careers and Case Studies ticked, and pages already in the menu labelled In this menu

🎥 For context, watch this part of my prototype walkthrough video, from 24:05. The Navigation Menus section, from 17:05, covers how all of these ideas fit together.

🧪 Try it yourself in the working demo in WordPress Playground. The demo code lives in #86188.

🔌 This flow is now in the Create Not Learn editor plugin, where you can try it in WordPress Playground alongside the other menu changes. There's also a newer walkthrough of it, from 21:55.

Why

Adding items one by one is slow. People regularly tell us the classic Menus screen did this better.

Bulk add also gives the advanced item types somewhere to live. That's what lets the task-based inserter (#86177) stay down to three simple options for the everyday case. People get a simple path for adding one item, and a separate, more capable mode for everything else, rather than the two getting mixed together.

How

  • Apply this in both places the menu list view appears, on the Navigation Menus screen in the Site Editor and in the List View tab of the Navigation block's inspector controls. People should get the same experience wherever they edit their menu.
  • Build the screen as a modal launched from "More..." in the task-based inserter, and from inside sub menu containers (Navigation Menus: Treat sub menus as first-class containers #86178).
  • The prototype builds the item lists with DataViewsPicker, which gives search, filtering and multi-select for free.
  • Show which items are already in the menu, so people don't add duplicates by accident.
  • Map each selected item to the existing link blocks, so nothing changes in the saved markup.

User Stories

As a site owner setting up a new site, I want to add several Pages to my menu in one go, so I don't have to repeat the same steps for every link.

As a site owner, I want to add a category or archive link without it cluttering the everyday options, so the common case stays simple and the advanced case is still possible.

Video

video-bulk-add.mp4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions