Skip to content

Categories List Block: Add custom taxonomies support #62773

@t-hamano

Description

@t-hamano

What problem does this address?

The Categories List block (core/categories) can display a list of categories in various formats.

image

This block currently only supports built-in category taxonomy, so we cannot display a list of terms from custom taxonomies.

categories

However, this block uses wp_dropdown_categories() function internally, and the wp_dropdown_categories() function supports taxonomy parameter, so we should be able to support custom taxonomies.

What is your proposed solution?

The approach I propose is to automatically register registered public taxonomies as variations, similar to the implementation in the Post Terms block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] CategoriesAffects the Categories Block[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions