Title: AM Events
Author: Atte Moisio
Published: <strong>2013년 5월 5일</strong>
Last modified: 2017년 11월 14일

---

플러그인 검색

![](https://ps.w.org/am-events/assets/banner-772x250.png?rev=1766333)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/am-events/assets/icon-256x256.png?rev=1020809)

# AM Events

 작성자: [Atte Moisio](https://profiles.wordpress.org/moisture/)

[다운로드](https://downloads.wordpress.org/plugin/am-events.1.13.1.zip)

 * [세부사항](https://ko.wordpress.org/plugins/am-events/#description)
 * [평가](https://ko.wordpress.org/plugins/am-events/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/am-events/#installation)
 * [개발](https://ko.wordpress.org/plugins/am-events/#developers)

 [지원](https://wordpress.org/support/plugin/am-events/)

## 설명

The purpose of this plugin is to add an event type similar to the normal post type.
By design this plugin doesn’t provide any ready-made layouts, and allows the events
to be fully integrated and customized to the theme of your choosing.

### Current Features

 * Admin pages to view/create/modify events.
 * Available data fields for events: start date, end date, venue, category
 * Create weekly or biweekly recurring events
 * Fully customizable widget for displaying upcoming events.

The custom post type created by the plugin is named ‘am_event’ and has two taxonomies:‘
am_event_categories’ and ‘am_venues’. Dates are stored as post metadata. Displaying
the events is done in the theme files using WP_Query and the template tags provided
by the plugin. This allows full control over the layout and what elements to show.

The widget for displaying upcoming events uses a simple template system for full
control of the layout.

If you think something critical is missing, feel free to send me a request.

The plugin is available in the following languages (pot-file included for additional
translations):

 * English
 * French
 * Norwegian
 * Finnish

### TUTORIAL

For integrating AM Events to an existing theme, I suggest creating a [child theme](https://codex.wordpress.org/Child_Themes)
with custom page templates. You can find an example of a working Twenty Twelve child
theme from [https://github.com/attemoi/am-events-child-theme](https://github.com/attemoi/am-events-child-theme)
containing three different page templates for event pages.

#### Widget

Here are the shortcodes available in the upcoming events widget template.

 * [event-title]
 * [start-date]
 * [end-date]
 * [event-venue]
 * [event-category]
 * [content]
 * [thumbnail]
 * [excerpt]
 * [permalink]
 * [meta]

Conditional shortcodes:

 * [if cond=”startdate-is-enddate”]
 * [if cond=”startdate-not-enddate”]
 * [if cond=”startday-is-endday”]
 * [if cond=”startday-not-endday”]
 * [if cond=”has-venue”]
 * [if cond=”has-category”]

The title can be linked to the event post with the ‘link’ attribute, e.g. [event-
title link=true]

The category and venue can also be linked similarly to their respective archive 
pages using the ‘link’ attribute, e.g. [event-category link=true]

The number of words displayed in the title, content or excerpt can be limited by
the ‘limit’ attribute, e.g. [content limit=25] or [event-title limit=10].

The dates can be formatted using the ‘format’ attribute, e.g. [start-date format
=’d.m.Y H:i’] (see [PHP date](http://php.net/manual/en/function.date.php) for formatting
options). If no format is given, the default WordPress date format is used.

You can use any shortcode as many times as needed in a single template. To separate
date and time of start date for example you could write:

    ```
    [start-date format='d.m.Y']
    <span>divider</span>
    [start-date format='H:i']
    ```

Example usage of conditional shortcode:

    ```
    [start-date format='D d.m.Y H:s']
    [if cond='startdate-not-enddate']
     - [end-date format='D d.m.Y H:s']
    [/if]
    ```

#### Template tags

Template tags were introduced in version 1.3.0 and are listed below. More documentation
can be found in the source files.

    ```
    // Template tags for getting and displaying event dates
    am_the_startdate($format = 'Y-m-d H:i:s', $before = '', $after = '', $echo = true)
    am_get_the_startdate( $format = 'Y-m-d H:i:s', $post = 0 )
    am_the_enddate($format = 'Y-m-d H:i:s', $before = '', $after = '', $echo = true)
    am_get_the_enddate( $format = 'Y-m-d H:i:s', $post = 0 )

    // Template tags for getting and displaying event venues
    am_get_the_venue( $id = false )
    am_in_venue( $venue, $post = null )
    am_get_the_venue_list( $separator = '', $parents='', $post_id = false )
    am_the_venue( $separator = '', $parents='', $post_id = false )

    // Template tags for getting and displaying event categories
    am_get_the_event_category( $id = false )
    am_get_the_event_category_list( $separator = '', $parents='', $post_id = false )
    am_in_event_category( $eventCategory, $post = null )
    am_the_event_category( $separator = '', $parents='', $post_id = false )
    ```

Example of displaying the first category of the current event post:

    ```
    $categoryArray = am_get_the_event_category();
    echo $categoryArray[0]->name;<h3>Creating a WP_Query</h3>
    ```

The custom post type is named ‘am_event’
 The taxonomies are named ‘am_venues’ and‘
am_event_categories’.

The event post has metadata named ‘am_startdate’ and ‘am_enddate’ that are formatted
like ‘yyyy-mm-dd hh:mm’

So suppose I wanted to display all events with a category of ‘other’ and venue ‘
mcdonalds’. I would then make a WP_Query like this:

    ```
    $args = array(
            'post_type' => 'am_event',
            'post_status' => 'publish',
            'tax_query' => array(
                    'relation' => 'AND',
                    array(
                        'taxonomy' => 'am_venues',
                        'field' => 'name',
                        'terms' => 'mcdonalds',
                    ),
                    array(
                        'taxonomy' => 'am_event_categories',
                        'field' => 'name',
                        'terms' => 'other'
                    ),
            ),
        );

    $the_query = new WP_Query($args);

    if ($the_query->have_posts()) {
        while ($the_query->have_posts()) {
            $the_query->the_post();

            $postId = $post->ID;

            // Use template tags to get start and end date
            $startDate = am_get_the_startdate('Y-m-d H:i:s');
            $endDate = am_get_the_enddate('Y-m-d H:i:s');

            // Use template tags to get venues and categories in an array
            $venues = am_get_the_venue( $postId );
            $eventCategories = am_get_the_category( $postId );

            // All the other functions used for posts like
            // the_title() and the_content() work just like with normal posts.

            // ...  DISPLAY POST CONTENT HERE ... //

        }
    }
    ```

If you want the events ordered by start date, add the following to $args:

    ```
    'orderby' => 'meta_value',
    'meta_key' => 'am_startdate',
    'order' => 'ASC',
    ```

If you need to display only upcoming events, add the following meta_query argument
to $args:

    ```
    'meta_query' => array(
            array(
                'key' => 'am_enddate',
                'value' => date('Y-m-d H:i:s', time()),
                'compare' => ">",
            ),
    ),
    ```

The plugin folder also contains a file “examples.php”, which contains an example
function for displaying upcoming events in a table.

## 스크린샷

[⌊Creating an event⌉⌊Creating an event⌉[

Creating an event

[⌊Widget administration⌉⌊Widget administration⌉[

Widget administration

[⌊Example page with events and the widget.⌉⌊Example page with events and the widget
.⌉[

Example page with events and the widget.

[[

## 설치

This section describes how to install the plugin and get it working.

 1. Upload folder `am-events` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 후기

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

### 󠀁[Simple and flexible events](https://wordpress.org/support/topic/simple-and-flexible-events/)󠁿

 [nvvweb](https://profiles.wordpress.org/nvvweb/) 2017년 10월 20일

Easily implemented functionality and great support for small, unexpected bugs.

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

### 󠀁[Dead or still maintained](https://wordpress.org/support/topic/dead-or-still-maintained/)󠁿

 [Fleuv](https://profiles.wordpress.org/fleuv/) 2017년 9월 15일 답글 2개

This plugin got loads of nice features unfortunately it hasn’t been updated for 
quiet a while now. I tried to use this plugin on a site the other day but unfortunately
the date picker didn’t returned the right format as well as the date field value
send is not converted correctly to an unix timestamp it somehow always returns 0.
Leaving you with only “1970-01-01 00:00:00” dates. Please look into this issue try
different translations. I’m sure you have to use php’s function strtotime() here.
Good luck, Cheers Fleuv

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

### 󠀁[Simple but powerful](https://wordpress.org/support/topic/simple-but-powerful-26/)󠁿

 [ladygeekgeek](https://profiles.wordpress.org/ladygeekgeek/) 2016년 9월 3일

Fantastic plugin and great support. Thanks

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

### 󠀁[Powerful, flexible, easy to mod](https://wordpress.org/support/topic/powerful-flexible-easy-to-mod/)󠁿

 [Evan Scheingross](https://profiles.wordpress.org/evster/) 2016년 9월 3일

This event plugin is a great foundation to build a custom calendar implementation
on top of. It works well and provides many powerful options right out of the box.

 [ 모든 7 평가 읽기 ](https://wordpress.org/support/plugin/am-events/reviews/)

## 기여자 & 개발자

“AM Events”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

 *   [ Atte Moisio ](https://profiles.wordpress.org/moisture/)

“AM Events”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 [번역자](https://translate.wordpress.org/projects/wp-plugins/am-events/contributors)
님께 감사드립니다.

[자국어로 “AM Events”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/am-events)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/am-events/)는, [SVN 저장소](https://plugins.svn.wordpress.org/am-events/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/am-events/)을
[RSS](https://plugins.trac.wordpress.org/log/am-events/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.13.1

 * Fix PHP debug error on some admin pages

#### 1.13.0

 * Replace jQuery datetimepicker with flatpickr

#### 1.12.0

 * Updated jQuery UI date/time picker

#### 1.11.0

 * Added new conditional shortcodes for venues and categories

#### 1.10.0

 * Added hooks for including extra fields to event posts
 * Added [meta] shortcode for widget

#### 1.9.8

 * Fixed problem with tags

#### 1.9.7

 * Fixed admin panel event list ordering

#### 1.9.6

 * Fixed tags being stripped from recurring events

#### 1.9.5

 * Fixed compatibility with WordPress 4.3

#### 1.9.4

 * Fixed date localization issues

#### 1.9.3

 * Fixed widget category and venue filtering bug

#### 1.9.2

 * Translation fixes.
 * Added thumbnail shortcode to widget

#### 1.9.1

 * Fixed bug when removing event categories from recurring events

#### 1.9.0

 * Improved handling of recurring events
 * Added start and end dates to quick edit

#### 1.8.0

 * Added conditional tags for the widget

#### 1.7.1

 * Added French language

#### 1.7.0

 * Added option to change slug for event posts
 * Added [excerpt] shortcode for the widget
 * Added customizable “No upcoming events” message to widget
 * Added option to change how long passed events are shown in the widget

#### 1.6.0

 * Added option to change time picker minute step
 * Fixed featured image and excerpts not copying when creating recurrent events

#### 1.5.1

 * Fixed a few minor bugs

#### 1.5.0

 * Added support for thumbnail and excerpt for event posts

#### 1.4.0

 * Added new improved widget template shortcode system

#### 1.3.1

 * Fixed minor bugs in template tags

#### 1.3.0

 * Added template tags for getting and displaying event data

#### 1.2.1

 * Fixed localization typos
 * Added simple WP_Query tutorial in ‘Other Notes’

#### 1.2.0

 * Added support for PHP 5.2 (previously needed 5.3)
 * Fixed multiple bugs

#### 1.1.0

 * Added localization to date format

#### 1.0.1

 * Fixed bugs in the upcoming events -widget
 * Added missing examples.php

#### 1.0.0

 * First released/stable version

## 기초

 *  버전 **1.13.1**
 *  최근 업데이트: **9년 전**
 *  활성화된 설치 **90+**
 *  워드프레스 버전 ** 3.3.1 또는 그 이상 **
 *  다음까지 시험됨: **4.8.30**
 *  언어
 * [English (US)](https://wordpress.org/plugins/am-events/) 및 [Finnish](https://fi.wordpress.org/plugins/am-events/).
 *  [자국어로 번역하기](https://translate.wordpress.org/projects/wp-plugins/am-events)
 * 태그:
 * [calendar](https://ko.wordpress.org/plugins/tags/calendar/)[dates](https://ko.wordpress.org/plugins/tags/dates/)
   [Event](https://ko.wordpress.org/plugins/tags/event/)[events](https://ko.wordpress.org/plugins/tags/events/)
   [venue](https://ko.wordpress.org/plugins/tags/venue/)
 *  [고급 보기](https://ko.wordpress.org/plugins/am-events/advanced/)

## 평점

 별 5점 만점에 4.7점.

 *  [  6/5-별점 후기     ](https://wordpress.org/support/plugin/am-events/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/am-events/reviews/?filter=4)
 *  [  1/3-별점 후기     ](https://wordpress.org/support/plugin/am-events/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/am-events/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/am-events/reviews/?filter=1)

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

[모든  리뷰 보기](https://wordpress.org/support/plugin/am-events/reviews/)

## 기여자

 *   [ Atte Moisio ](https://profiles.wordpress.org/moisture/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/am-events/)