AI助手支持GPT4.0
This plugin gives content developers shortcode equivalents to the conditional tags that WordPress provides for theme developments.
此插件为内容开发人员提供了与WordPress为主题开发提供的条件标签等效的短代码。
Each shortcode only includes its contents if a certain condition is true.
如果某个条件为真,则每个简码仅包括其内容。
This allows them to modify what content is shown in any given context on a post-by-post basis.
这样一来,他们便可以逐个修改在任何给定上下文中显示的内容。 p>
The new shortcodes and when they include contents are:
新的短代码及其包含内容的时间是: p>
ul>
Each shortcode also allows has an “else” shortcode that can go inside it.
每个简码还允许在其中包含一个“其他”简码。
For example:
例如: p>
[is_single] [is_single]This is only shown if showing just this post.仅在仅显示此帖子时显示。[not_single][not_single]This is shown everywhere else.这在其他地方都显示。[/is_single][/ is_single] code> pre>In general, the “else” shortcode is just replacing “is” with “not”.通常,“ else”短代码只是将“ is”替换为“ not”。The one exception is “not_comments_open” as the “else” shortcode for “comments_open”.一个例外是“ not_comments_open”作为“ comments_open”的“ else”简码。 p>Whichever chunk of content is included is processed for shortcodes, so you can use all your other shortcodes and even nest these if you need to.其中包含的任何内容块都将被处理为短代码,因此您可以使用所有其他短代码,甚至在需要时嵌套它们。 p>Further Instructions其他说明 h3>Any other information I have can be found at the Conditional Shortcodes Homepage我所拥有的其他任何信息都可以在有条件的简码主页中找到.。 p>License许可证 h3>I dunno.我不知道。How about creative commons attribution?创用CC归属如何?Sound ok?听起来还好吗?Good.好。 p>
[is_single]This is only shown if showing just this post.仅在仅显示此帖子时显示。[not_single][not_single]This is shown everywhere else.这在其他地方都显示。[/is_single][/ is_single]
This is only shown if showing just this post.
仅在仅显示此帖子时显示。
[not_single]
This is shown everywhere else.
这在其他地方都显示。
[/is_single]
[/ is_single]
code> pre>
In general, the “else” shortcode is just replacing “is” with “not”.
通常,“ else”短代码只是将“ is”替换为“ not”。
The one exception is “not_comments_open” as the “else” shortcode for “comments_open”.
一个例外是“ not_comments_open”作为“ comments_open”的“ else”简码。 p>
Whichever chunk of content is included is processed for shortcodes, so you can use all your other shortcodes and even nest these if you need to.
其中包含的任何内容块都将被处理为短代码,因此您可以使用所有其他短代码,甚至在需要时嵌套它们。 p>
Any other information I have can be found at the Conditional Shortcodes Homepage我所拥有的其他任何信息都可以在有条件的简码主页中找到.。 p>
我所拥有的其他任何信息都可以在有条件的简码主页中找到.
I dunno.
我不知道。
How about creative commons attribution?
创用CC归属如何?
Sound ok?
听起来还好吗?
Good.
好。 p>
Unzip it and activate it and you’ll have the shortcodes.
解压缩并激活它,您将获得简码。 p>
原文出处:http://www.sanshu.cn/a/8254.html
群主管理都是支付大佬