[wordpress插件] DeMomentSomTres Display Posts ShortcodeDeMomentSomTres显示帖子短代码

wordpress 插件 文章 2020-04-15 09:30 602 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Based on development by Bill Erickson (http://www.billerickson.net/shortcode-to-display-posts/).

基于Bill Erickson的开发(http://www.billerickson.net/shortcode-to-display-posts/)。

We have added support to multisite in order to be capable of reading any other blog in the network.

我们已经添加了对多站点的支持,以便能够阅读网络中的任何其他博客。

The DeMomentSomTres Display Posts Shortcode was written to allow users to easily display listings of posts without knowing PHP or editing template files and extendend to take the maximum profit from a network install with multiple blogs.

编写 DeMomentSomTres显示帖子简码的目的是,用户无需知道PHP或编辑模板文件即可轻松显示帖子列表,并扩展以从具有多个博客的网络安装中获得最大收益。

p>

>

Usage

用法

Add the shortcode in a post or page, and use the arguments to query based on tag, category, post type, and many other possibilities (see the Arguments).

在帖子或页面中添加简码,并使用参数根据标签,类别,帖子类型和许多其他可能性进行查询(请参见自变量)。

I’ve also added some extra options to display something more than just the title: include_date, include_excerpt, and image_size.

我还添加了一些其他选项,以显示不仅仅是标题的内容:include_date,include_excerpt和image_size。

Add the parameter blog_id to change the network instance number.

添加参数blog_id来更改网络实例号。

See the WordPress Codex for information on using the arguments.

有关使用参数的信息,请参见 WordPress Codex

The parameter metaorderby allows to order based on a metafield or customfield value.

参数metaorderby允许根据元字段或自定义字段值进行排序。

The parameter metaorderbynum does the same but considering the values as numbers.

参数metaorderbynum的功能相同,但将值视为数字。

History & Raison d’être

历史和存在理由

A customer of us needed a multisite website to implement multiple languages and she was using DeMomentSomTres

我们的客户需要一个多站点网站来实现多种语言,并且她正在使用 DeMomentSomTres

Language Plugin.

语言插件。

Although they could have many blogs they didn’t want to keep 3 blogs informed.

尽管他们可能有很多博客,但他们不想让3个博客保持最新状态。

However they wanted to show the blog in all the subsites.

但是,他们希望在所有子站点中显示博客。

So we build this plugin allowing to show blog content from other sites in the multisite installation.

因此,我们构建了此插件,可以在多站点安装中显示其他站点的博客内容。

安装步骤

This plugin can be installed as any other WordPress plugin.

此插件可以像其他任何WordPress插件一样安装。

Requirements

要求

下载地址
https://downloads.wordpress.org/plugin/demomentsomtres-display-posts-shortcode.zip
-EOF-

AI助手支持GPT4.0