Title: LH Display Posts Shortcode
Author: shawfactor
Published: <strong>2019 年 6 月 6 日</strong>
Last modified: 2022 年 8 月 7 日

---

搜索插件

![](https://ps.w.org/lh-display-posts-shortcode/assets/banner-772x250.jpg?rev=2101317)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/lh-display-posts-shortcode/assets/icon-256x256.png?rev=2101317)

# LH Display Posts Shortcode

 作者：[shawfactor](https://profiles.wordpress.org/shawfactor/)

[下载](https://downloads.wordpress.org/plugin/lh-display-posts-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/lh-display-posts-shortcode/)

## 描述

LH Display Posts allows you easily list content from all across your website. Whilst
respecting the current users capability to view the posts displayed.

Just add the [lh_display_posts] shortcode to you content. The shortcode has 5 optional
parameters

 * post_parent: show only post/pages with the parent id specified
 * post__in: a comma separated list of post ids to query
 * post_type: the post type, this defaults to ‘post’
 * post_author: the id of the post author
 * template: see details below on how to alter the template used to output the shortcode

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-display-posts-shortcode/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-display-posts-shortcode/).**

## 安装

 1. Upload the `lh-display-posts-shortcode` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the shortcode in your posts and pages.

## 常见问题

### How can I add my own template for outputting the rss feed?

Copy folder lh_dps-templates from the plugin into your active child theme directory,
then edit or add templates as required. The plugin will also look to see if the 
specified teamplate exists there first.

### Why did you write this plugin?

Because I wanted a simple shortcode that respected the statuses viewable by the 
user.

### What is something does not work?

LH Display Posts Shortcode, and all [https://lhero.org](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists please leave a post in the support forum: [https://wordpress.org/support/plugin/lh-display-posts-shortcode/](https://wordpress.org/support/plugin/lh-display-posts-shortcode/).
I look there regularly and resolve most queries.

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## 评价

此插件暂无评价。

## 贡献者及开发者

「LH Display Posts Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[帮助将「LH Display Posts Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lh-display-posts-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/lh-display-posts-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/lh-display-posts-shortcode/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/lh-display-posts-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/lh-display-posts-shortcode/)。

## 更新日志

**1.00 June 04, 2019**
 * Initial release

## 额外信息

 *  版本 **1.01**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lh-display-posts-shortcode/)
 * 标签
 * [page](https://cn.wordpress.org/plugins/tags/page/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)[query](https://cn.wordpress.org/plugins/tags/query/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/lh-display-posts-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/lh-display-posts-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lh-display-posts-shortcode/reviews/)

## 贡献者

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/lh-display-posts-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://lhero.org/portfolio/lh-display-posts-shortcode/)