alleyinteractive / alleyinteractive/alley-scripts
Use post type label in post selector instead of post type slug
未关闭
Post Selector
- 主要语言
- TypeScript
- 星标
- 10
- 派生
- 3
- 平均合并
- 4 天 22 小时
- 30 天内合并 PR
- 2
描述

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.

贡献指南
评估
这个 Issue 还没有评估数据。