[wordpress插件] Custom Fields Shortcodes自定义字段简码

wordpress 插件 文章 2020-04-08 07:10 392 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Custom Fields Shortcodes lets you insert custom fields that you created using <

自定义字段简码可让您插入使用<

strong>Advanced Custom Fields, Custom Field Template and More Fields or manually, into the WordPress visual editor.

strong>高级自定义字段自定义字段模板更多字段,或者手动将其添加到WordPress可视编辑器中。

You’ll get a new popup, next to the media buttons.

您会在媒体按钮旁边看到一个新的弹出窗口。

There, you can select which custom fields to insert, anywhere in the content.

在这里,您可以选择要在内容中的任何位置插入哪些自定义字段。

You will see the custom fields that you’ve defined, neatly arranged by meta-boxes.

您将看到已定义的自定义字段,由元框整齐地排列。

Choose the field to insert and you’ll get its shortcode.

选择要插入的字段,您将获得其简码。

You can insert custom fields from either Visual or HTML editing modes.

您可以从Visual或HTML编辑模式插入自定义字段。

When inserting custom fields that were created by other plugins, they display using the plugin’s API.

在插入由其他插件创建的自定义字段时,它们会使用插件的API进行显示。

For instance, if you use ‘Advanced Custom Fields’ and you insert a ‘radio’ field, you get the current value.

例如,如果您使用“高级自定义字段”并插入“无线电”字段,则会获得当前值。

If you insert a WYSIWYG field, you get the full HTML content.

如果插入“所见即所得”字段,则会获得完整的HTML内容。

This allows inserting custom fields to your content without having to read them using PHP.

这允许在您的内容中插入自定义字段,而不必使用PHP读取它们。

Adding Custom Fields to WordPress Templates

将自定义字段添加到WordPress模板

Custom Fields Shortcodes integrates seamlessly with Views

自定义字段简码与视图无缝集成

a>.

一个>。

You will be able to create dynamic templates that include any field you want

您将能够创建动态模板,其中包括您想要的任何字段

.

Then, apply these templates to different content types, right from within the WordPress GUI.

然后,直接在WordPress GUI中将这些模板应用于不同的内容类型。

安装步骤

    1. Upload to the ‘/wp-content/plugins/’ directory
    2. 上传到“ / wp-content / plugins /”目录

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

下载地址
https://downloads.wordpress.org/plugin/custom-fields-shortcodes.0.9.zip
-EOF-

AI助手支持GPT4.0