forked from kostasxyz/acf-dual-post-object-field
-
Notifications
You must be signed in to change notification settings - Fork 0
netconstructor/acf_dual_post_object_field
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ACF Dual Post Object Field ================================================== Saves the post ID of the post that has the post object field Description ----------- This ACF (Advanced Custom Fields) field is an extension of the post object field. The post object field saves a post object in a custom field of a post. The Dual post object field saves the the id of the post with the post object field in a custom field ('reverse_obj') of the post object. Example: Let's say we have 2 custom post types. Projects and Tasks. So a project has many tasks. Create a custom field for tasks in the ACF with field type of Dual post object. Now when you select the project object that the task belongs to, the dual post objects also saves in the custom field 'reverse_obj' in the project of the id of the task. Everything is stored in serialized data. This is an atempt for reverse relationship. There is a discussion here about reverse in the ACF forum http://support.advancedcustomfields.com/discussion/1979/how-to-getting-the-reverse-relationship-from-a-relationship-field Hope that this is something helpfull.
About
This field for the acf wp plugin extends the native post object field by saving a post id in the releted post.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published