开发者 | Anton Korotkoff |
---|---|
更新时间 | 2019年1月31日 23:39 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 5.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/complex-meta-fields
directory to the /wp-content/plugins/
directory.You may notice there are a lot of plugins that do almost the same things as this one. But there always is a small difference. In current case plugin allows to add REPEATABLE field sets for any Post Type. Meaning you can add any amount of the same field sets to a post or page while editing it. Then you can output them in a post loop using built-in API. Moreover, it is light, simple and useful in the same time.
FieldSet is simply a set of fields that you are going to use while editing posts. FieldSet may consist of any amount of fields inside and may be repeated multiple times in order to provide multiple objects into the post. When creating new FieldSet you will need to provide Name and select a post type to specify where you want this FieldSet to be used. FieldSet Slug is used to show FieldSet data on front-end and it is generated automatically depending on Name. See Front-end API for more.
There is nothing special about Fields. It is simply html inputs of different types inside a FieldSets. There are some predefined types for common use.
This question is not related to the plugin and Post Types are completely described here: http://codex.wordpress.org/Post_Types