WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#10449 closed feature request (wontfix)

Add Calendar Events as first-class data type

Reported by: mikeschinkel Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9
Component: General Keywords: close
Focuses: Cc:

Description

I am coming across the need to incorporate a calendar of events into sites more and more often. There are many different calendar plugins but they have different features and all of them store calendar events differently.

I'd like to propose a standard "calendar_event" type be added to wp_posts to include start date/time and end date/time in wp_postmeta or added to the wp_posts table itself, whichever is preferred. In addition, functionality to add a calendar event (as there currently is for posts and pages) and a rudimentary events calendar display both with lots of hooks for plugins to enhance.

If we do this then calendar plugins can provide cumulative functionality instead of only providing mutually exclusive functionality.

Change History (4)

comment:1 dd325 years ago

  • Keywords dev-feedback 2nd-opinion added; calendar events post types removed
  • Milestone changed from Unassigned to Future Release
  • Version set to 2.9

Adding a calendar event instead of a post is as simple as

$calendar_object = (object)array('post_title' => 'The Title', 'post_date' => '2009 08 4 5pm', 'post_type' => 'calendar');
wp_insert_post($calendar_object);

In other words, it only requires setting an extra post_type field.. IMO, They're plugins, They can deal with having an extra flag if thats the route they'd like to take (a new post type)

Unless WordPress is going to include a full event calender inside WordPress, theres no point adding the API. So i assume thats what you're asking? To merge one of the plugins into core with the ability for other plugins to override?

comment:2 Denis-de-Bernardy5 years ago

  • Keywords close added; dev-feedback 2nd-opinion removed

suggesting close as well.

see also the GSOC project related to this. it'll likely end up being a plugin.

comment:3 jane4 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Closing this, calendars are specific use cases and can be done very nicely with custom post types.

comment:4 scribu4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.