AI助手支持GPT4.0
As of version 2.0 CNP allows you to easily embed posts from other websites in the same WordPress network with a shortcode builder that is available above your editor.
从2.0版开始,CNP允许您使用编辑器上方可用的简码生成器轻松地将来自同一WordPress网络中其他网站的帖子嵌入。 p>
The manual way of entering the shortcode is still available, but you can chooses whichever you prefer.
仍然可以使用手动输入短代码的方式,但是您可以选择任何一个。 p>
Also included from version 2.0 is an options page where you set certain security measures: 1. You can restrict embedding of content to only the original author of the post (does not apply to administrators) 1. You can disallow other websites in
2.0版还包括一个选项页面,您可以在其中设置某些安全措施:1.您可以将内容的嵌入限制为帖子的原始作者(不适用于管理员)1.您可以禁止其他网站在
the WordPress network to embed posts from your website
WordPress网络嵌入来自您网站的帖子 p>
This plugin is useful if you have a wordpress network (multisite) and you want to display (embed) a post or a category of posts that is on another website in the same network.
如果您有一个wordpress网络(多站点)并且想要显示(嵌入)同一网络中另一个网站上的帖子或帖子类别,此插件将非常有用。 p>
Use the shortcode builder above the editor or type the shortcode in manually:
使用编辑器上方的简码构建器,或手动输入简码: p>
[cnp blogid=1 postid=1]
[cnp blogid = 1 postid = 1] code> pre>Attributes属性 h4>Mandatory 必填 strong> p>blogid is the ID of the blog you wish to pull the post from (go to Network->Sites and hover over the site to view the ID). blogid strong>是您希望将其发布到的博客的ID(转到Network-> Site,然后将鼠标悬停在该站点上以查看ID)。 p>Instead of postid= you can also use catid= to display all posts from a category.除了 postid = strong>外,您还可以使用 catid = strong>显示类别中的所有帖子。 p>Optional 可选 strong> p>header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2) header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
Mandatory
必填 strong> p>blogid is the ID of the blog you wish to pull the post from (go to Network->Sites and hover over the site to view the ID). blogid strong>是您希望将其发布到的博客的ID(转到Network-> Site,然后将鼠标悬停在该站点上以查看ID)。 p>Instead of postid= you can also use catid= to display all posts from a category.除了 postid = strong>外,您还可以使用 catid = strong>显示类别中的所有帖子。 p>Optional 可选 strong> p>header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2) header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
blogid is the ID of the blog you wish to pull the post from (go to Network->Sites and hover over the site to view the ID).
blogid strong>是您希望将其发布到的博客的ID(转到Network-> Site,然后将鼠标悬停在该站点上以查看ID)。 p>Instead of postid= you can also use catid= to display all posts from a category.除了 postid = strong>外,您还可以使用 catid = strong>显示类别中的所有帖子。 p>Optional 可选 strong> p>header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2) header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
Instead of postid= you can also use catid= to display all posts from a category.
除了 postid = strong>外,您还可以使用 catid = strong>显示类别中的所有帖子。 p>Optional 可选 strong> p>header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2) header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
Optional
可选 strong> p>header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2) header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2)
header = 1 strong>->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题 p>excerpt=true -> if you only want to display excerpts with read more links to the post on the other website excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
excerpt=true -> if you only want to display excerpts with read more links to the post on the other website
excerpt = true strong>->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接 p>numberofposts=5 -> for displaying a certain number of posts from a category (default is 5) numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
numberofposts=5 -> for displaying a certain number of posts from a category (default is 5)
numberofposts = 5 strong>->用于显示某个类别中的特定数量的帖子(默认为5) p>titlelink=false -> if you don’t want the title to have a permalink (default is true) titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
titlelink=false -> if you don’t want the title to have a permalink (default is true)
titlelink = false strong>->如果您不希望标题具有永久链接(默认为true) p>Working with other plugins 使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
Working with other plugins
使用其他插件 strong> p>If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>Note: not all plugins will work.注意:并非所有插件都可以使用。Post about it if you find some that do and also that don’t.如果您发现有做与不做的内容,请发贴。 p>
If you want to display a plugin through a shortcode that is in one of the posts that you are displaying, make sure that the plugin is also active on the network site where you use CNP.
如果要通过显示的帖子之一中的短代码显示插件,请确保该插件在使用CNP的网站上也处于活动状态。 p>
Note: not all plugins will work.
注意:并非所有插件都可以使用。
Post about it if you find some that do and also that don’t.
如果您发现有做与不做的内容,请发贴。 p>
[cnp blogid = 1 postid = 1] code>添加到页面或手动或通过简码构建器发布内容 li>
ol>
原文出处:http://www.sanshu.cn/a/9126.html
群主管理都是支付大佬