Title: WP Post of the Day
Author: Micah Wood
Published: <strong>2019 年 5 月 14 日</strong>
Last modified: 2021 年 4 月 28 日

---

搜索插件

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

![](https://ps.w.org/wp-post-of-the-day/assets/icon-256x256.png?rev=2287955)

# WP Post of the Day

 作者：[Micah Wood](https://profiles.wordpress.org/wpscholar/)

[下载](https://downloads.wordpress.org/plugin/wp-post-of-the-day.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-post-of-the-day/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-post-of-the-day/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-post-of-the-day/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-post-of-the-day/#developers)

 [支持](https://wordpress.org/support/plugin/wp-post-of-the-day/)

## 描述

The **WP Post of the Day** plugin allows you to display a new post once a day.

Using this plugin is simple:

 1. Install the plugin
 2. Activate the plugin
 3. On the page or post where you want to have a post display, add the `[wp_post_of_the_day]`
    shortcode where you want your post to appear.
 4. Save your changes.

#### Features

 * Works with custom post types
 * No settings page, just an easy way for you to show a daily post on your site
 * Clean, well written code that won’t bog down your site

## 安装

#### Prerequisites

If you don’t meet the below requirements, I highly recommend you upgrade your WordPress
install or move to a web host
 that supports a more recent version of PHP.

 * Requires WordPress version 4.5 or greater
 * Requires PHP version 5.3 or greater

#### The Easy Way

 1. In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
 2. In the search box, type in ‘WP Post of the Day’ and hit enter. This plugin should
    be the first and likely the only result.
 3. Click on the ‘Install’ link.
 4. Once installed, click the ‘Activate this plugin’ link.

#### The Hard Way

 1. Download the .zip file containing the plugin.
 2. Upload the file into your `/wp-content/plugins/` directory and unzip
 3. Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’

## 常见问题

The `[wp_post_of_the_day]` shortcode supports a few attributes to give you more 
control over the results:

 * **author** – Provide an author ID or a comma-separated list of author IDs if 
   you want to limit the selected posts to one of those authors. Example: `[wp-post-
   of-the-day author="1, 11, 14"]`
 * **not** – Provide a comma-separated list of post IDs to exclude. Example: `[wp-
   post-of-the-day not="3, 456, 876"]`
 * **post_type** – Provide a post type or a comma-separated list of post types to
   pull from. You must use the internal post type name. Default is `post`. Example:`[
   wp-post-of-the-day post_type="page"]`
 * **search** – Provide a custom search term to limit the selected posts returned.
   Example: `[wp-post-of-the-day search="relativity"]`
 * **taxonomy** – Provide a custom taxonomy to pull from. Requires the `terms` attribute
   to be set as well. Example: `[wp-post-of-the-day taxonomy="post_tag" terms="2,4"]`
 * **terms** – Provide a term ID or comma-separated list of term IDs to limit the
   selected posts returned. Requires the `taxonomy` attribute to be set as well.
   Example: `[wp-post-of-the-day taxonomy="post_tag" terms="2,4"]`
 * **class** – Provide a custom class name for the wrapping HTML div. Example: `[
   wp-post-of-the-day class="my-custom-class"]`
 * **size** – Provide a registered image size to use for image display (optional,
   only takes effect if images are being shown). Example: `[wp-post-of-the-day size
   ="thumbnail"]`
 * **show** – Provide a comma-separated list of post elements to display. You can
   also use a vertical pipe `|` character instead of a comma to separate items into
   columns. Options are: title, image, excerpt, content. Defaults to `title, image,
   excerpt`. Items will show in the order you provide. Note: If images are shown,
   only posts with featured images will be returned. Example: `[wp-post-of-the-day
   show="title, image"]`

Keep in mind that any of these attributes can be combined as needed. Example: `[
wp-post-of-the-day author="19" size="full" not="2310"]`. Also, keep in mind that
the shortcode can be used in text widgets.

## 评价

![](https://secure.gravatar.com/avatar/5869c67186a5764a868bac6af93061b9cee7a1253f303b0781f1727776c6abc8?
s=60&d=retro&r=g)

### 󠀁[Excellent and lightweight plugin](https://wordpress.org/support/topic/excellent-and-lightweight-plugin-2/)󠁿

 [chillmen](https://profiles.wordpress.org/chillmen/) 2022 年 2 月 6 日

Excellent plugin it is still compatible with wordpress 5.9, it offers many options
via the shortcode. Thanks a lot to the developer for this plugin

![](https://secure.gravatar.com/avatar/b474079cf6ed0adbc3577e7a9abf684ca40d07c0ceeb471054086555b62a24c9?
s=60&d=retro&r=g)

### 󠀁[Good Work](https://wordpress.org/support/topic/good-work-538/)󠁿

 [thebigdotco](https://profiles.wordpress.org/thebigdotco/) 2019 年 5 月 30 日

Simple, well coded and effective. Will the stored IDs reset after all posts have
been shown?

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/)

## 贡献者及开发者

「WP Post of the Day」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

[帮助将「WP Post of the Day」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-post-of-the-day)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Tested in WordPress version 5.2

## 额外信息

 *  版本 **1.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **5.7.20**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-post-of-the-day/)
 * 标签
 * [different post](https://cn.wordpress.org/plugins/tags/different-post/)[post of the day](https://cn.wordpress.org/plugins/tags/post-of-the-day/)
   [post rotation](https://cn.wordpress.org/plugins/tags/post-rotation/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-post-of-the-day/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-post-of-the-day/reviews/)

## 贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-post-of-the-day/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.me/wpscholar)