1) WordPress core provides powerful and flexible APIs that allow developers to build complex functionality without plugins. Custom post types and taxonomies can be used to create marketing sliders, photo galleries, and other content types tailored to specific needs.
2) Building functionality with core APIs rather than plugins keeps sites lighter, more secure, and easier to maintain and upgrade. It also ensures compatibility with other plugins and themes.
3) Developers should focus on understanding user needs and serving their interests. Functionality should be optional and make sense for other themes. Context is important - relating content through taxonomy provides a better experience.
18. What’s in a slide?
2 Headline & Text
Lorem ipsum dolor sit
amet, consectetur
adipiscing elit.
Curabitur porttitor
tempor dui.
1
Banner/Image 3 Call to Action/Button »
19. Custom Post Type
These pieces map perfectly to a custom post
type with minimal custom fields.
20. Mapping Fields
Slide Data Custom Post Type
Banner/Image Featured Image
Headline Post Title
Text Post Content
Call to Action Text Custom Field or Post Content
Call to Action URL Custom Field or Post Content
Slide Order Menu Order
Display/Hide Publish Status*
* We could use a custom taxonomy
45. But What If?
You’ve got custom HTML/CSS already.
You can’t duplicate it with [gallery].
46. Use/Hack Plugins?
Could be bloated code.
Could be insecure.
Could take longer.
47. Image Attachments.
They’re a post type.
You can query ‘em.
You can do anything with ‘em.
48. Galleries of Galleries.
Photo Galleries parent page can
list all child pages (galleries).
Can display photos via templates or
quick call shortcode API.