Custom Post Type Staff
WordPress Custom Post Type
by Ralf Hortt · github.com/horttcore/custom-post-type-staff · website
★ 1stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/horttcore/custom-post-type-staff/archive/refs/heads/master.zipReadme
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
- URL
- Room
Language Support
- english
- german
Hooks
Actions
staff-meta-table-beforeBefore the staff meta tablestaff-meta-beforeFirst row in the staff meta tablestaff-meta-afterLast row in the staff meta tablestaff-meta-table-afterAfter the staff meta table
Filters
staff-metaStaff meta is past as arraysave-staff-metaStaff 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_urlwithesc_url_raw - Fixed: Salutation warning on
save_post
v2.0.1
- Template tags fixed
- Added
has_staff_metatemplate tag - Added
roomfield - Added
urlfield
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