—IN DEVELOPMENT, CHANGE TO COME—
This plugin pack has been built with library websites in mind where common content types like a staff directory, database listing, and journal listing are typically in use. It’s also meant to act as a sort of framework to help libraries better take advantage of WordPress’ custom types by demonstrating working examples.
Three different custom post types are included in this plugin pack:
- Staff Directory
Each custom post type has been built as a plugin and can be turned on/off in the plugins section.
Elements of the custom post types:
- Custom metaboxes (specific information like ISSN, time span coverage, staff member’s phone number, etc.)
- Custom taxonomies (like subjects that the journal or database is associated with)
- Custom columns (information straight from the metaboxes when you view all your items for that custom post type)
Installing the custom post types works like any other plugin:
- Upload the
library-cptfolder to the
- Activate the custom post types of your choosing through the ‘Plugins’ menu in WordPress
- Create templates to use the custom post type data
Do these custom post types work straight “out of the box”?
Nope. You’ll need to create the template to show the data you enter. I hope to package some basic templates to work with in a future release.
Could you create *this* kind of custom post type for me?
Well – I’m up for suggestions. Use the support forum for this plugin pack to request future post types. But I also suggest getting your hands dirty with the packaged custom post types. I’ve tried to keep my code clean enough for you to replicate in other post types and I’ll continue to make it better with each iteration by adding inline documentation.
Contributors & Developers
“Library Custom Post Types” is open source software. The following people have contributed to this plugin.
Interested in development?
- Removed cpt-TEST.php plugin header
- Added has_archive to custom post types and adjusted rewrite to ignore “blogs” front on multisite installs
- Removed support for custom fields and author choice in all post types
- Minor changes (code cleanup, index fixes, etc.)
- Fixed an icon image path issue
- Changed staff directory member’s photo to a text box for image URL entry – hope to build in a straight-to-media library functionality at a later time
- First release