WP Manifestindependent plugin directory
manifest / events / custom-post-type-events

Custom Post Type Events

Custom Post Type for WordPress

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/horttcore/custom-post-type-events/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A custom post type to manage events

Supports

  • Title
  • Post-Thumbnail
  • Page Attributes

Custom Fields

  • eventStart
  • eventEnd

Template tags

  • theEventDate($format, $before, $after)
  • theEventTime($format, $before, $after)
  • theEventDateTime($format, $before, $after)

Functions

  • getEventInfo($postId)

  • getEventDate($postId, $format)

  • getEventTime($postId, $format)

  • getEventDateTime($postId, $format)

  • eventIsAllDay($postId)

  • eventIsMultiDay($postId)

  • getPreviousEvent($postId)

  • getNextEvent($postId)

Language Support

  • english
  • german

Translation ready

Hooks

Actions

Filters

Template file for the loop

add_filter('custom-post-type-events-loop-template', fn () => __DIR__.'/views/block-events.php');

Template file for a single entry in the loop

add_filter('custom-post-type-events-single-template', fn () => __DIR__.'/views/block-event.php');