https://github.com/horttcore/custom-post-type-events
Custom Post Type for WordPress
https://github.com/horttcore/custom-post-type-events
custom-post-type events wordpress
Last synced: 12 months ago
JSON representation
Custom Post Type for WordPress
- Host: GitHub
- URL: https://github.com/horttcore/custom-post-type-events
- Owner: Horttcore
- Created: 2013-01-03T12:58:15.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T17:05:50.000Z (over 1 year ago)
- Last Synced: 2024-11-07T18:20:35.604Z (over 1 year ago)
- Topics: custom-post-type, events, wordpress
- Language: PHP
- Homepage: https://horttcore.de
- Size: 414 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Post Type Events
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');`