https://github.com/horttcore/custom-post-type-downloads
Custom post type for WordPress
https://github.com/horttcore/custom-post-type-downloads
custom-post-type downloads wordpress
Last synced: about 1 month ago
JSON representation
Custom post type for WordPress
- Host: GitHub
- URL: https://github.com/horttcore/custom-post-type-downloads
- Owner: Horttcore
- License: gpl-3.0
- Created: 2012-12-19T12:46:45.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T09:34:03.000Z (over 5 years ago)
- Last Synced: 2025-03-05T09:45:35.415Z (about 2 months ago)
- Topics: custom-post-type, downloads, wordpress
- Language: PHP
- Homepage: https://horttcore.de
- Size: 110 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Custom Post Type Downloads
A custom post type to manage downloads
## Supports
* Title
* Editor
* Thumbnail
* Page Attributes## Custom Fields
* Attachment ID
## Language Support
* english
* germanTranslation ready
## Template functions
* `download_file_size( $before = '', $after = '' )`
* `download_icon()`
* `download_mime_type()`
* `download_thumbnail( $size = 'thumbnail', $icon = false, $attr = '' )`
* `get_download_attachment_id( $post_id )`
* `get_download_count( $post_id )`
* `get_download_file_size( $post_id, $formatted = TRUE )`
* `get_download_icon( $post_id )`
* `get_download_mime_type( $post_id )`
* `get_download_thumbnail( $post_id, $size = 'thumbnail', $icon = false, $attr = '' )`
* `the_download_count( $before = '', $after = '', $post_id = NULL )`## Hooks
### Actions
* `custom-post-type-downloads-before-loop`
* `custom-post-type-downloads-loop`
* `custom-post-type-downloads-after-loop`## Changelog
### v0.4
* Added: Access control management
* Added: Download single template
* Added: Widget
* Added: Shortcode
* Added: Template functions### v0.3
* Added: Shortcode [downloads]
* Added: Widget
* Added: Hooks
* Fix: Do not display file information if no file is selected### v0.2
* Refactoring
### v0.1
* Initial release