[wordpress插件] Advanced Custom Fields – Widget Relationship Field add-on高级自定义字段–小部件关系字段附加组件

wordpress 插件 文章 2020-02-07 12:20 521 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

IMPORTANT!

重要!

NOW ONLY COMPATIBLE WITH ACF 4.2 AND ABOVE!

现在仅与ACF 4.2及更高版本兼容!

BACKWARD COMPATIBILITY HAS BEEN REMOVED.

向后兼容性已删除。

This plugin is an add-on for Advanced Custom Fields.

此插件是“高级自定义字段”的附加组件。

It allows you to use an ACF “relationship” field to choose widgets at a page level.

它允许您使用ACF“关系”字段在页面级别选择小部件。

Inherit widgets from parent post or menu items.

从父帖子或菜单项继承小部件。

Drag and drop to change widget display order.

拖放以更改小部件的显示顺序。

Documentation

文档

https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields

https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields

Bug Submission and Support

错误提交和支持

https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields

https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields

Rate this plugin

为此插件评分

If this plugin helps you, please give it a good rating.

如果此插件对您有帮助,请给它一个良好的评价。

If you have any problems, please ask me.

如果您有任何问题,请问我。

I’m happy to help.

我很乐意提供帮助。

安装步骤

    1. Upload plugin-name.php to the /wp-content/plugins/ directory
    2. plugin-name.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. In sidebar.php, replace dynamic_sidebar() function with the new dynamic_widgets() method.

      sidebar.php 中,用新的 dynamic_widgets()方法替换 dynamic_sidebar()函数。

      if ( ! acf_Widget::dynamic_widgets( ‘Side Bar’ ) ) {

      if(!acf_Widget :: dynamic_widgets(“ Side Bar”)){

      //fallback to default function if you like
         

      //如果愿意,可以使用默认功能
         

      dynamic_sidebar( ‘Side Bar’ );

      dynamic_sidebar('Side Bar');

      }

      }

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-widget-relationship-field-add-on.1.3.4.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-widget-relationship-field-add-on.1.3.4.zip

-EOF-

AI助手支持GPT4.0