The introduction of Custom Content Types was one of the core tipping points where WordPress went from a solid blogging platform on which you could do some simple CMS-style sites to a full fledged CMS which was capable of driving more complex content-centered web applications.
In this talk I’ll briefly cover the “blobs vs chunks” distinction popularized by Karen McGrane and why content modeling matters in the CMS world.
Then we’ll cover custom post types, custom meta fields, custom taxonomies, and other ways of doing structured content in WordPress.
7. “We don't need more content –
we need content that does more”
- Sara Wachter Boettcher
#wcbos #chunky
http://www.cmsmyth.com/2013/04/contentthat-does-more/
@jeckman
10. “WPT’s capture content with the
primary purpose of publishing web
pages. . . . CMS’s, on the other
hand, store the content cleanly,
enabling the presentation layers to
worry about how to display the
content.”
- Daniel Jacobson
#wcbos #chunky
http://www.markboulton.co.uk/journal/adapti
ve_content_management
@jeckman
19. register_post_type()
Arguments passed control:
• What to call it (Labels)
• Where to show it
– Public, Show UI, Searchable, has_archive
– Menu position
• Who can use it (capabilities)
• What it includes (supports)
#wcbos #chunky
@jeckman
31. We’ve also got custom meta data here for:
• Pull Quote
• School
• Teacher
• Democracy Coaches
#wcbos #chunky
@jeckman
32. Custom Post Meta Boxes
• add_meta_box() passed a styling function
• style function outputs the html needed for admin
screen
• save function added to save_post action
• update_post_meta to store
#wcbos #chunky
@jeckman
36. Chunky Via Plugins
• Custom Post Type UI
– http://wordpress.org/plugins/custom-post-type-ui/
• Custom Post Type List Shortcode
– http://wordpress.org/plugins/custom-post-type-listshortcode/
• Secondary HTML Content
– http://wordpress.org/extend/plugins/secondary-htmlcontent/
• Attachments
– http://wordpress.org/extend/plugins/attachments/
#wcbos #chunky
@jeckman
Growing up in Dublin we didn’t get a lot of snow, so this was a kids dream come true. Another highlight that year was this.
Delight.us
Karen McGrane, Jeff Eaton, Deanne Barker and many others have long talked about the difference between content management systems and web publishing systems. In a web publishing system, the focus is on “making web pages” – and we mix structure and content. In a true content management system the two are separate
Arguably, by default, WordPress creates “blobs” – what does in to that big primary WYSIWYG editor is a mixture of headings, subheadings, callouts, images, and other content – but in a fully unstructured way.
But we do actually have some existing metadata:DateCategoriesTagsTitleExcerptPost Thumbnail / Featured ImageAuthor info (based on the logged in user). Further, media “attached” to the post are tracked as a relationship in meta and can be pulled up, including post-thumbnail.
NPR Case study – Create Once, Publish Everywhere. Today we will focus on the content entry part of the equation, and less on display – though I’ll talk about that at the end
Even as just stories they can be incredibly powerful.But we also have the opportunity to make them real. So I wanted to talk a little about how we can think about the systems we build and the stories we tell in a different way. So that maybe we can help create the kind of experiences that stay with people forever.
In this simple example, we get a custom post type for alerts but there isn’t really much complexity to it – otherwise it is mostly a blob. I do get to use the “date published” differently in the template