Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bidirectional Relationships #157

Open
antoine-waag opened this issue Oct 7, 2024 · 3 comments
Open

Bidirectional Relationships #157

antoine-waag opened this issue Oct 7, 2024 · 3 comments

Comments

@antoine-waag
Copy link

I would like to implement a bidirectional field with a Relationship component but it seems not implemented yet.

https://www.advancedcustomfields.com/resources/bidirectional-relationships/

@vinkla
Copy link
Owner

vinkla commented Oct 8, 2024

You're welcome to submit a pull request to add this feature. The challenge is that the keys are automatically generated. I haven't thoroughly examined this yet, but it seems that users would need to set custom field keys.

@antoine-waag
Copy link
Author

@vinkla yes, the most difficult part is to get the field key reference from a field name and the post types list defined in the RelationShip field.

It seems, there is no function to get that key reference easily. All functions ask for $post_id

If you have any suggestion to achieve this issue, please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@vinkla @antoine-waag and others