[wordpress插件] Blockbuddy预算案

wordpress 插件 文章 2020-03-06 20:30 440 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

A plugin to extend WordPress Gutenberg editor and allow for dynamic blocks to be built using custom queries.

扩展WordPress Gutenberg编辑器并允许使用自定义查询构建动态块的插件。

Custom Query Block

自定义查询块

Our first block, Custom Query Block allow for dynamic blocks to be built using custom queries.

我们的第一个块,即定制查询块,允许使用定制查询来构建动态块。

The Custom Query Block comes with 3 basic templates which are stored in the plugin /templates directory.

自定义查询块带有3个基本模板,这些模板存储在插件 / templates 目录中。

You can override or create your own templates for the block to use by creating a /template-parts/blocks/ sub folder in your theme.

您可以通过在主题中创建一个 / template-parts / blocks / 子文件夹来覆盖或创建自己的模板以供使用。

The plugin will scan active themes for this directory and pull in all PHP templates from this directory so you can select them

该插件将扫描该目录下的活动主题,并从该目录中提取所有PHP模板,以便您可以选择它们

via the Custom Query Block inspector settings.

通过“自定义查询块”检查器设置。

Templates can contain anything you like and you’ll have access to the $attributes array which has all the selection data for

模板可以包含您喜欢的任何内容,并且您可以访问 $ attributes 数组,该数组具有
的所有选择数据

that particular block, as well as the $post_query object for that block.

该特定的块,以及该块的 $ post_query 对象。

Features

功能

    • Developer Friendly
    • 对开发人员友好

    • User Friendly
    • 用户友好

    • Custom Templates
    • 自定义模板

下载地址
https://downloads.wordpress.org/plugin/blockbuddy.0.1.zip
-EOF-

AI助手支持GPT4.0