0

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?

1 Answer 1

1

You could use post object or post link as your custom field type. https://www.advancedcustomfields.com/resources/post-object/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.