admin管理员组文章数量:1387328
I'm just getting into the world of SAGE development and at the same time, I'm using the Advanced Custom Fields plugin.
Let's say, that we have created two custom post types (Professors, Lessons). Each post type has its own custom fields. At some point, however, I would like to add a new custom field to the Professors' post type that will be called Lessons and will be a selectable list of all the lessons that one created in the Lessons post type. So In that way, you can connect each professor with the corresponding lessons of his/hers.
So far I couldn't find a way to pre-fill/pre-define a custom select field with values taken from the database (e.g post titles). Is there a different way to achieve this?
I'm just getting into the world of SAGE development and at the same time, I'm using the Advanced Custom Fields plugin.
Let's say, that we have created two custom post types (Professors, Lessons). Each post type has its own custom fields. At some point, however, I would like to add a new custom field to the Professors' post type that will be called Lessons and will be a selectable list of all the lessons that one created in the Lessons post type. So In that way, you can connect each professor with the corresponding lessons of his/hers.
So far I couldn't find a way to pre-fill/pre-define a custom select field with values taken from the database (e.g post titles). Is there a different way to achieve this?
Share Improve this question asked Apr 29, 2020 at 8:08 J. DoeJ. Doe 1032 bronze badges1 Answer
Reset to default 1You could use post object or post link as your custom field type. https://www.advancedcustomfields/resources/post-object/
本文标签: databaseFill custom select field with pagespost titles
版权声明:本文标题:database - Fill custom select field with pagespost titles 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744514174a2610058.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论