Postqueue Feeds

描述

An extension for Postqueue. For every postqueue it publishes an RSS feed containing that queue’s posts, in exactly the order the queue puts them in.

Two addresses lead to a queue’s feed, both using the queue’s slug:

  • https://example.com/feed/my-queue/
  • https://example.com/?feed=my-queue

Nothing has to be set up. Every postqueue gets its feed the moment it exists – including queues added later.

Under Tools › Postqueues, where Postqueue lists the queues, this plugin adds a Feed column showing each queue’s address – so it can be read off and copied where the queue is managed.

Templates

The feed is rendered from template/postqueue-feed-rss2.php, a copy of the RSS2 template WordPress ships. A theme can replace it by putting a file of the same name in a plugin-parts folder, or in any sub folder of one:

  • your-theme/plugin-parts/postqueue-feed-rss2.php
  • your-theme/plugin-parts/anything/postqueue-feed-rss2.php

Child themes take precedence over parent themes.

安装

  1. Install and activate Postqueue first – without it this plugin has nothing to publish.
  2. Install Postqueue Feeds through Plugins › Add New, or upload it to /wp-content/plugins/.
  3. Activate it through the Plugins menu. That is all: activating rebuilds the rewrite rules by itself.

常见问题

Do I have to save the permalink settings?

No. Activating the plugin rebuilds the rewrite rules, and the rule covers every queue slug at once – so a postqueue created afterwards has its feed straight away. Up to version 1.0 this was necessary, which is why older instructions ask for it.

Can a queue’s feed still be reached as my-queue.xml?

No, that address is gone as of 2.0.0. The rule behind it matched every .xml address on the site – wp-sitemap.xml among them – and answered those with a feed instead of their own content. Use /feed/<slug>/.

Which posts appear in a feed?

Every published post in the queue, in the queue’s order, with no paging limit. Scheduled posts and drafts are left out.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

帮助将「Postqueue Feeds」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.0.1

Bug Fixes
* do not run the feed template when it is requested directly (91b7f60)
* release (5b4071a)

2.0.0

⚠ BREAKING CHANGES
* a queue’s feed is no longer served at .xml. That address was documented in the README and is gone with the rule behind it. Use /feed// or ?feed=.

Features
* show each queue’s feed address on the Postqueues screen

Bug Fixes
* make the feed work as soon as the plugin is activated
* stop answering wp-sitemap.xml with a feed

1.0

  • First release