开发者 |
vegacorp
josevega |
---|---|
更新时间 | 2024年1月13日 03:57 |
PHP版本: | 4.1 及以上 |
WordPress版本: | 6.4 |
版权: | GPLv2 |
版权网址: | 版权信息 |
[vg_display_data key="user_email" data_source="user_data"]
[vg_display_data key="first_name" data_source="user_meta"]
[vg_display_data key="first_name,last_name" data_source="user_meta"]
[vg_display_data key="post_title" data_source="post_data"]
[vg_display_data key="post_excerpt" data_source="post_data"]
[vg_display_data object_id="20" key="category" data_source="post_terms" template="<b>Categories:</b> {{var}}" joiner=", "]
[vg_display_data key="_thumbnail_id" template="<b>Image url:</b> {{var}}" flag="file_url"]
<img>
tag.: [vg_display_data key="_thumbnail_id" template="<b>Image:</b> {{var}}" flag="image_tag"]
[vg_display_data object_id_type="query_string" object_id="post_id" key="post_title" data_source="post_data"]
[vg_display_data object_id_type="find" object_id="phone:1234" key="user_email" data_source="user_data"]
object_id
= Post ID. Leave empty to use the current post. Possible values: (empty), current, number, query string key if object_id_type=query_string, meta_key:meta_value if object_id_type=findobject_id_type
= Leave empty if object_id is empty, or current, or is a number. Possible values: query_string, finddata_source
= What database table to use to find the data. Default = post_meta. Possible values: post_data, post_meta, user_data, user_meta, post_terms.key
= Field key. It accepts one or multiple keys separated by commas. For example, to display full name = first_name,last_name. Required.template
= HTML fragment to use to display the field, if the field is empty the html is not displayed. Optional.default
= Default value to use if the field is empty. Optional.joiner
= If the field has multiple values, it will join the values with this string. Default " " (one space). Optional.flag
= Use only if the field contains a file ID to conver the ID to URL or image tag. Default values: file_url , image_tag. Optional.wpautop
= Whether to turn line breaks into paragraphs. Optional, only for advanced users.do_shortcodes
= Whether to parse shortcodes before displaying the field value. Optional, only for advanced users.