Title: Advent Calendar
Author: Paul Vincent Beigang
Published: <strong>2013 年 11 月 29 日</strong>
Last modified: 2022 年 11 月 29 日

---

搜索插件

![](https://ps.w.org/advent-calender/assets/banner-772x250.png?rev=812859)

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

![](https://s.w.org/plugins/geopattern-icon/advent-calender_ffffff.svg)

# Advent Calendar

 作者：[Paul Vincent Beigang](https://profiles.wordpress.org/bassgang/)

[下载](https://downloads.wordpress.org/plugin/advent-calender.1.0.5.zip)

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

 [支持](https://wordpress.org/support/plugin/advent-calender/)

## 描述

This plugin easily outputs an advent calendar for your chosen year (e.g. 2013).

In the current version one entry consits of a title and a featured image, that’s
all!

Therefore the plugin provides the following functionality:

 * A custom post type called “Advent calendar entry”
 * A bulk creation utility to create 24 Advent calendar entries with one click. 
   Each one is automatically scheduled
    for 1. – 24.12.
 * A shortcode which outputs an Advent calendar overview. You can use it with [advent-
   calendar year=”xxxx”], i.e
    for 2013 it would be [advent-calendar year=”2013″]
 * As long as an Advent calendar entry is not published the entry will not be clickable
   in the Advent calendar overview.
    After automatically publishing (make sure your
   WordPress virtual cron is running probapbly) the entry will be clickable and 
   viewable.

Fits perfect for any website to release exclusive picture content on the 24 days
before christmas.

## 屏幕截图

[⌊This shows the overview of the Advent calendar output. In this specific demo the
first Advent calendar entry is
already published and therefore linked it has a preview
of the featured image and a link to the single view.⌉⌊This shows the overview of
the Advent calendar output. In this specific demo the first Advent calendar entry
is
already published and therefore linked it has a preview of the featured image
and a link to the single view.⌉[

This shows the overview of the Advent calendar output. In this specific demo the
first Advent calendar entry is already published and therefore linked it has a preview
of the featured image and a link to the single view.

## 安装

 * Install the plugin.
 * Activate the plugin.
 * Use the bulk creation tool to create the Advent calendar entries.
 * Set a featured image for each Advent calendar entry.
 * Use the shortcode “[advent-calendar]” to output the Advent calendar overview.

## 常见问题

### Defaults

 * Yeb, you are right, by default the Advent calender post type only provides a “
   title” and a “featured image”. If you
    want to extend it, read further 😉

### Advent Calender Post Type Customization

 * Advent calender post type customization via the provided “pvb_acal_cpt_params”
   hook. The following example will extend
    the advent calender post type with the
   common post WordPress content / editor box. Youh can use the hook in your themes“
   functions.php” or in a plugin like
 * function acal_change_post_type_params( $custom_post_type_params ) {
    $custom_post_type_params[‘
   supports’] = array( ‘title’, ‘editor’, ‘thumbnail’ ); return $custom_post_type_params;}
   add_filter( ‘pvb_acal_cpt_params’, ‘acal_change_post_type_params’ );

### Single Advent Calender Template / View Customization

 * If you want to use a custom template for a single advent calender entry (the “
   detail view”) copy
    “wp-content/plugins/advent-calendar/public/views/single-advent-
   calendar-entry-custom.php” to your theme folder, i.e. “wp-content/themes/YOUR-
   THEME/single-advent-calendar-entry-custom.php”.

## 评价

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

### 󠀁[It worked the way it is said!](https://wordpress.org/support/topic/it-worked-the-way-it-is-said/)󠁿

 [wph4](https://profiles.wordpress.org/wph4/) 2016 年 9 月 3 日

Thanks a lot!!

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/advent-calender/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Paul Vincent Beigang ](https://profiles.wordpress.org/bassgang/)

[帮助将「Advent Calendar」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/advent-calender)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.5

 * Provide “pvb_acal_cpt_params” hook to enable flexible “3rd party” customization
   of the advent calendar post type. For
    example: Now it is easy to add the normal“
   content” section (editor) to an advent calender entry
 * Provide further customization possibilities by loading a custom single advent
   calender entry template if present,
    the plugin checks for ‘single-advent-calendar-
   entry-custom.php’ in the folder of your active theme under wp-content/themes.

#### 1.0.2

 * Increase overall theme compatibility: Remove specific twentythirteen functions
   in “public/views/single-advent-calendar-entry.php”.
 * Improve installation instructions.

#### 1.0.1

 * Fixed misspelled “calender” to “calendar” everywhere.
 * Improve text in README.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**4 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.7.1 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  语言
 * [English (US)](https://wordpress.org/plugins/advent-calender/)
 * 标签
 * [advent](https://cn.wordpress.org/plugins/tags/advent/)[calendar](https://cn.wordpress.org/plugins/tags/calendar/)
   [christmas](https://cn.wordpress.org/plugins/tags/christmas/)[flexible](https://cn.wordpress.org/plugins/tags/flexible/)
 *  [高级视图](https://cn.wordpress.org/plugins/advent-calender/advanced/)

## 评级

 4.2 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/advent-calender/reviews/#new-post)

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

## 贡献者

 *   [ Paul Vincent Beigang ](https://profiles.wordpress.org/bassgang/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/advent-calender/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FCCQCWL3QNM36)