[wordpress插件] Cross-Network posts跨网络帖子

wordpress 插件 文章 2020-04-05 07:20 546 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Major overhaul

大修

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网络中其他网站的帖子嵌入。

The manual way of entering the shortcode is still available, but you can chooses whichever you prefer.

仍然可以使用手动输入短代码的方式,但是您可以选择任何一个。

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网络嵌入来自您网站的帖子

Usage

用法

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网络(多站点)并且想要显示(嵌入)同一网络中另一个网站上的帖子或帖子类别,此插件将非常有用。

Use the shortcode builder above the editor or type the shortcode in manually:

使用编辑器上方的简码构建器,或手动输入简码:

[cnp blogid=1 postid=1] 

  [cnp blogid = 1 postid = 1]  

Attributes

属性

Mandatory

必填

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 是您希望将其发布到的博客的ID(转到Network-> Site,然后将鼠标悬停在该站点上以查看ID)。

Instead of postid= you can also use catid= to display all posts from a category.

除了 postid = 外,您还可以使用 catid = 显示类别中的所有帖子。

Optional

可选

header=1 -> header number (i.e. h1 ), no title if you set it to 0 (default is 2)

header = 1 ->标头编号(即h1),如果将其设置为0(默认值为2),则没有标题

excerpt=true -> if you only want to display excerpts with read more links to the post on the other website

excerpt = true ->如果您只想显示摘录,其中包含指向其他网站的帖子的更多链接

numberofposts=5 -> for displaying a certain number of posts from a category (default is 5)

numberofposts = 5 ->用于显示某个类别中的特定数量的帖子(默认为5)

titlelink=false -> if you don’t want the title to have a permalink (default is true)

titlelink = false ->如果您不希望标题具有永久链接(默认为true)

Working with other plugins

使用其他插件

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的网站上也处于活动状态。

Note: not all plugins will work.

注意:并非所有插件都可以使用。

Post about it if you find some that do and also that don’t.

如果您发现有做与不做的内容,请发贴。

安装步骤

    1. install (or download zip and upload) and activate the plugin on the Plugins page
    2. 安装(或下载zip并上传)并在“插件”页面上激活插件

    3. add shortcode [cnp blogid=1 postid=1] to page or post content manually or with the shortcode builder
    4. 将简码 [cnp blogid = 1 postid = 1] 添加到页面或手动或通过简码构建器发布内容

下载地址
https://downloads.wordpress.org/plugin/cross-network-posts.2.0.zip
-EOF-

AI助手支持GPT4.0