[wordpress插件] ACF Timber IntegrationACF木材整合

wordpress 插件 文章 2020-01-27 15:20 575 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

This plugin is intended for developers that are using Advanced Custom Fields and Timber to develop their themes.

该插件面向使用高级自定义字段和Timber来开发主题的开发人员。

By enabling this plugin the user-defined advanced custom fields will be available in the Timber context variable as follows:

通过启用此插件,用户定义的高级自定义字段将在Timber上下文变量中可用,如下所示:

    • Fields defined for settings pages will be available everywhere under the “options” key
    • 为设置页面定义的字段将在“选项”键下随处可见

    • Fields defined for posts, pages and custom post types will be available on the \Timber\Post object under the “fields” key
    • 为帖子,页面和自定义帖子类型定义的字段将在\ Timber \ Post对象的“字段”键下提供

    • Fields defined for terms will be available on the \Timber\Term object under the “fields” key
    • 为术语定义的字段将在\ Timber \ Term对象的“ fields”键下可用

    • Fields defined for users will be available on the \Timber\User object under the “fields” key

      为用户定义的字段将显示在\ Timber \ User对象的“字段”键下

    • Defined menus will also be available everywhere under the “menus” key

      定义的菜单也将在“菜单”键下随处可见

    • In order to reduce the amount of fields provided we limited the automatic processing to the first two levels of post fields.

    • 为了减少提供的字段数量,我们将自动处理限制为发布字段的前两个级别。

      That means that if you have Post A which relates Post B, which relates Post C you will get the fields for Post A and Post B, while for Post C you will get the Timber Post without the processed fields.

      这意味着,如果您具有与帖子B相关联的帖子A,而与帖子C相关联,您将获得帖子A和帖子B的字段,而对于帖子C,您将获得未处理字段的木材帖子。

      To modify the depth use the ‘acf_timber_posts_fields_max_depth’ filter.

    • 要修改深度,请使用“ acf_timber_posts_fields_max_depth”过滤器。

    Also adds twig functions for images:

    还为图像添加了树枝功能:

      • srcset – used to generate srcset attribute tag.

      • srcset –用于生成srcset属性标记。

        Usage:

      • 用法:

      • image_attr – used to generate srcset, width, height and alt.

      • image_attr –用于生成srcset,宽度,高度和alt。

        Usage:

      • 用法:

安装步骤

    1. Install Advanced Custom Field v4 or v5 or Advanced Custom Fields Pro
    2. 安装高级自定义字段v4或v5或高级自定义字段Pro

    3. Install Timber WordPress Plugin
    4. 安装Timber WordPress插件

    5. Install ACF Timber Integration
    6. 安装ACF木材集成

    7. Start creating twig files
    8. 开始创建树枝文件

    9. Profit
    10. 利润

下载地址

https://downloads.wordpress.org/plugin/acf-timber-integration.zip

https://downloads.wordpress.org/plugin/acf-timber-integration.zip

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Comments to Nabaztag对Nabaztag的评论
[wordpress插件] Category Banner Management for WoocommerceWoocommerce的类别横幅管理
[wordpress插件] Bonanza – WooCommerce Free Gifts LiteBonanza – WooCommerce免费礼品精简版
[wordpress插件] Cloud Printing for WooCommerceWooCommerce的云打印
[wordpress插件] AJAX Comments WPMUifiedAJAX评论WPMUified
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8526
问题? 8147
如何快速搭建抽奖助手小程序(无需代码知识) 5306
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6574
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5862
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5521
如何解决渲染层网络错误Failed to load media? 16768
小程序找号找回 释放昵称? 2781
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2653
删除部分微信用户个人数据的通知,怎么删除? 5830