alleyinteractive / alleyinteractive/alley-scripts

Use post type label in post selector instead of post type slug

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Post Selector
Dominant language
TypeScript
Stars
10
Forks
3
Avg merge
4d 22h
Merged PRs (30d)
2

Description

Post selector demo with custom post type slug

Post type slugs are not always as clean as "post" or "page" and ideally wouldn't be presented to the user. Instead of using the slug, we should use the `singular_name` post type label. See above screenshot where a post is presented in the custom post type `demo-post-type`.

Bonus points: it would be nice if the post type were on its own line, not in parentheses. Amongst the reasons, post titles may have parens, and that looks confusing. Here's an example of what it might look like, with a border separating them for additional clarity.

redesigned post selector proposal with post types on their own line

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.