admin管理员组文章数量:1122832
I am using a mixture of Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have serup a testimonials menu and in the list view all new posts appear as Auto Draft
. Is there anyway I can make the field slug client_name
act as the post title for the list view?
I am using a mixture of Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have serup a testimonials menu and in the list view all new posts appear as Auto Draft
. Is there anyway I can make the field slug client_name
act as the post title for the list view?
1 Answer
Reset to default 0Wouldn't it be better to have the users fill out the title field and use it as the client name? Woothemes' testimonials plugin does this. If that's not an option, you can look into adding a filter on title_save_pre. Haven't used it myself but here are examples:
- From StackExchange: Title_save_pre - Simple problem that u know for sure
- From WP Support Forums: Generating and setting a custom post title
本文标签: How to set custom post type as post title to avoid 39Auto Draft39
版权声明:本文标题:How to set custom post type as post title to avoid 'Auto Draft' 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736291211a1928676.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论