[wordpress插件] Custom Types and Fields自定义类型和字段

wordpress 插件 文章 2020-04-10 05:20 520 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

All custom types must currently be created in code since this was the easiest way to create it.

当前必须在代码中创建所有自定义类型,因为这是创建它的最简单方法。

The plugin ties in to the standard HTML and Image fields functionality within WordPress.

该插件与WordPress中的标准HTML和“图像”字段功能相关联。

Select boxes, checkboxes and

选择框,复选框和

standard text fields can also be created.

也可以创建标准文本字段。

By having content in the code, you can do things like create dropdowns of other content easily, as well as make migration between environments easier (example code is supplied).

通过在代码中包含内容,您可以轻松地进行创建其他内容的下拉菜单,以及使环境之间的迁移更加容易(提供示例代码)。

安装步骤

1) Upload the plugin to ‘/wp-content/plugins/’ directory 2) Activate the plugin through the plugins

1)将插件上传到“ / wp-content / plugins /”目录2)通过插件激活插件

3) Move the file “sample-types.php” to your active theme directory 4) Update the file with any custom types you want to create

3)将文件“ sample-types.php”移动到活动主题目录中。4)使用要创建的任何自定义类型更新文件

You will still need to create templates to go with your custom types: https://codex.wordpress.org/Custom_Fields https://codex.wordpress.org/Function_Reference/get_post_custom https://codex.wordpress.org

您仍然需要创建模板以使用自定义类型:https://codex.wordpress.org/Custom_Fields https://codex.wordpress.org/Function_Reference/get_post_custom https://codex.wordpress.org

/Function_Reference/get_post_meta

/ Function_Reference / get_post_meta

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

AI助手支持GPT4.0