CFS Post-2-Post
Automatic Two Way (Bidirectional) Relationships on Custom Field Suite
by SECT INTERACTIVE AGENCY · github.com/sectsect/cfs-post2post · website
★ 3stars
11composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sectsect/cfs-post2post/archive/refs/heads/master.zipAlso on Packagist as sectsect/cfs-post2post:
composer require sectsect/cfs-post2postFrom the readme
CFS Post 2 Post
Creates two way (bidirectional) relationships in Custom Field Suite.
This plugin does not create a new type of field or any admin interface. This plugin when used as explained below makes the existing CFS Relationship work bi-directionaly, automatically updating the relationship field on the other end of the relationship.
This plugin is inspired by Hube2's Post 2 Post for ACF
Requirements
PHP 5.3+
Activation Custom Field Suite Plugin.
Installation
1. cd /path-to-your/wp-content/plugins/
2. git clone git@github.com:sectsect/cfs-post2post.git
3. Activate the plugin through the 'Plugins' menu in WordPress.
That's it:okhand:
TIP
The field name must be the same on all posts. In other words if you want to have different post types be related then you must add a field with the same field name on both post types.
If you want to apply to some existing posts, Resave the post.
Overwrite Settings
If the field in a related post, whether it is a relationship field that has a maximum number of related posts, if the field in the related post already has the maximum number of values allowed then, by default, a new value will not be added. You can override