Skip to content

Query Loop block: switch 'Post type' inspector setting to use radio buttons when there are few items #63374

@priethor

Description

@priethor

What problem does this address?

The Query Loop block's post type setting displays as a dropdown when, by default, there are only two post types to select from (Post and Page). While dropdowns are useful for avoiding visual clutter when there are many options to choose from, when there are few items, they require an extra click with no advantages.

image

What is your proposed solution?

Using a RadioControl instead of a SelectControl when there are only two items.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions