定制 sectsect/cfs-post2post 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sectsect/cfs-post2post

Composer 安装命令:

composer require sectsect/cfs-post2post

包简介

Two way Relationship Fields for Custom Field Suite

README 文档

README

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

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:ok_hand:

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 this default by specifying overwrite settings.

You can access the Overwrite setting by going to Field Groups -> CFS Post 2 Post. And select overwrite type.

  • Do not overwrite
  • First Element
  • Last Element

The value selected in the field is deleted and the new value is added to the end.
📝 Also automatically removing the relationship field on the other end of the removed relationship.

NOTES for Developer

  • This Plugin does not hosting on the wordpress.org repo in order to prevent a flood of support requests from wide audience.

Change log

  • 1.0.1 - Change the page-type for setting to the sub-menu page
  • 1.0.0 - Initial Release

License

See LICENSE file.

Related Plugin

I have some plugins for Custom Field Suite.

CFS Loop Field Query

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固