最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Is there any way to make a custom field for a post only if the author is a certain user?

programmeradmin2浏览0评论

In short, when editing a post, if the author is set to say... user ID #47... I want another text field to come up to add to the post meta for this post.

I have ACF Pro, but I'm not seeing that as an option with it.

If it matters and if there's another solution... the issue is that occasionally posts will have authors who aren't WP Users, and we want one user to encompass them all, but have a text field for the author's name.

In short, when editing a post, if the author is set to say... user ID #47... I want another text field to come up to add to the post meta for this post.

I have ACF Pro, but I'm not seeing that as an option with it.

If it matters and if there's another solution... the issue is that occasionally posts will have authors who aren't WP Users, and we want one user to encompass them all, but have a text field for the author's name.

Share Improve this question asked Jun 18, 2020 at 2:08 Dan GoodspeedDan Goodspeed 1013 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This is what You are looking for

https://www.advancedcustomfields/resources/custom-location-rules/

发布评论

评论列表(0)

  1. 暂无评论