[wordpress插件] Display Posts – Easy lists, grids, navigation, and more显示帖子–简易列表,网格,导航等

wordpress 插件 文章 2020-04-19 14:01 449 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

Display Posts allows you easily list content from all across your website.

显示帖子可让您轻松列出整个网站上的内容。

Start by adding this shortcode in the content editor to display a list of your most recent posts:

首先在内容编辑器中添加此短代码以显示您最近发布的列表:

[display-posts]

  [显示帖子]

Filter by Category

按类别过滤

To only show posts within a certain category, use the category parameter:

要仅显示特定类别中的帖子,请使用category参数:

[display-posts category="news"]

  [display-posts category =“ news”]

Display as Post Grid

显示为帖子网格

You can create a great looking, column-based grid of posts with a bit of styling.

您可以创建带有样式的美观的基于列的帖子网格。

Here’s how!

这是怎么回事!

List Popular Posts

列出热门帖子

You can highlight your popular content in multiple ways.

您可以通过多种方式突出显示受欢迎的内容。

If you want to feature the posts with the most comments, use:

如果您想在评论中添加最多的帖子,请使用:

[display-posts orderby="comment_count"]

  [display-posts orderby =“ comment_count”]

You can also list most popular posts by social

您还可以按社交列出最受欢迎的帖子

shares.

股票。

Include thumbnails, excerpts, and more

包括缩略图,节选等

The display parameters let you control what information is displayed for each post.

通过显示参数,您可以控制显示每个帖子的信息。

To include an image and summary, use:

要包含图片和摘要,请使用:

[display-posts include_excerpt="true" image_size="thumbnail"]

  [显示帖子include_excerpt =“ true” image_size =“缩略图”]

You can use any image size added by WordPress (thumbnail, medium, medium_large, large) OR any custom image size added by your theme or other plugins.

您可以使用WordPress添加的任何图像大小(缩略图,中,中等_大,大),也可以使用主题或其他插件添加的任何自定义图像大小。

Sort the list however you like

根据需要对列表进行排序

By default the listing will list the newest content first, but you can order by title, menu order, relevance, content type, metadata, and more.

默认情况下,列表将首先列出最新内容,但您可以按标题,菜单顺序,相关性,内容类型,元数据等进行排序。

List upcoming events

列出即将发生的事件

You can easily list upcoming events from any event calendar.

您可以轻松地从任何事件日历中列出即将发生的事件。

Each plugin will require slightly different code.

每个插件将需要略有不同的代码。

Here are tutorials for popular event calendar plugins.

这是流行事件日历插件的教程

If your plugin is not listed here, submit a support request and I’ll add it!

如果您的插件未在此处列出,请提交支持请求,我将其添加!

Tutorials

教程

Our tutorials cover common customization requests, and are updated often.

我们的教程涵盖了常见的自定义请求,并且会经常更新。

Full Documentation

完整文档

安装步骤

    1. Upload display-posts-shortcode to the /wp-content/plugins/ directory.
    2. display-posts-shortcode 上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the Plugins menu in WordPress.
    4. 通过WordPress中的插件菜单激活插件。

    5. Add the [display-posts] shortcode to a post or page.
    6. [display-posts] 简码添加到帖子或页面。

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

AI助手支持GPT4.0