https://github.com/horttcore/custom-post-type-staff
WordPress Custom Post Type
https://github.com/horttcore/custom-post-type-staff
custom-post-type staff wordpress
Last synced: about 1 month ago
JSON representation
WordPress Custom Post Type
- Host: GitHub
- URL: https://github.com/horttcore/custom-post-type-staff
- Owner: Horttcore
- Created: 2012-12-09T16:38:32.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:01:26.000Z (over 3 years ago)
- Last Synced: 2025-03-05T09:45:36.494Z (over 1 year ago)
- Topics: custom-post-type, staff, wordpress
- Language: PHP
- Homepage: https://horttcore.de
- Size: 1.07 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Post Type Staff
A custom post type to manage staff
## Supports
* Title
* Editor
* Thumbnail
* Page attributes
* Divison ( Taxonomy )
## Custom Fields
* Salutation
* Grade
* First name
* Last name
* Role
* Phone
* Fax
* Mobil
* E-Mail
* URL
* Room
## Language Support
* english
* german
## Hooks
### Actions
* `staff-meta-table-before` Before the staff meta table
* `staff-meta-before` First row in the staff meta table
* `staff-meta-after` Last row in the staff meta table
* `staff-meta-table-after` After the staff meta table
### Filters
* `staff-meta` Staff meta is past as array
* `save-staff-meta` Staff meta is past as array
## Template tags
`get_staff_meta ( str $key [, int $post_id] )`
`the_staff_meta ( str $key [, int $post_id] )`
`hast_staff_meta ( str $key [, int $post_id] )`
## Changelog
### v2.0.2
* Fixed: `Replaced sanitize_url` with `esc_url_raw`
* Fixed: Salutation warning on `save_post`
### v2.0.1
* Template tags fixed
* Added `has_staff_meta` template tag
* Added `room` field
* Added `url` field
### v2.0
* Refactoring
* Added template tag `get_staff_meta`
* Added template tag `the_staff_meta`
### v1.1.2
* Enhancement: Cleanup
### v1.1.1
* Add filter `save-staff-meta`
### v1.1
* Added gender
* Added first name
* Added last name
* Cleanup
### v1.0
* Initial release