alleyinteractive / alleyinteractive/alley-scripts

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

未关闭
#151 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Post Selector
主要语言
TypeScript
星标
10
派生
3
平均合并
4 天 22 小时
30 天内合并 PR
2

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。