Title: LH RSS Shortcode
Author: shawfactor
Published: <strong>2019 年 5 月 14 日</strong>
Last modified: 2019 年 5 月 14 日

---

搜索插件

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

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

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

# LH RSS Shortcode

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

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

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

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

## 描述

Adds a simple to use [rss] shortcode with a couple of options:

 * feed: to put in the feed URL
 * num: to specify the number of items to show, defaults to 5
 * template: a wordpress template that will handle the shortcode output (defaults
   to default.php, you can use the two provided or follow the instructions on creating
   your own

Example use:

[lh_rss_shortcode feed=”https://shawfactor.com/feed/” num=”10″ ]

Or:

[lh_rss_shortcode feed=”https://shawfactor.com/feed/” num=”5″ template=”excerpt.
php”]

## 安装

 1. Upload the `lh-rss-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.

## 常见问题

  Why did you write this plugin?

The existing options did not give me the full flexibility to manipulate the output
of the fetched feed so I reviewed several fo the existing plugins and wrote this
one to do t better and give me that option.

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

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

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

**1.00 May 04, 2019**
 * Initial release

## 额外信息

 *  版本 **1.00**
 *  最后更新：**7 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/lh-rss-shortcode/)
 * 标签
 * [Atom](https://cn.wordpress.org/plugins/tags/atom/)[feed](https://cn.wordpress.org/plugins/tags/feed/)
   [rss](https://cn.wordpress.org/plugins/tags/rss/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/lh-rss-shortcode/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

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