Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WP Content Types
Search
Jake Chamberlain
June 03, 2014
Programming
0
37
WP Content Types
Types of structured content in wordpress
Jake Chamberlain
June 03, 2014
Tweet
Share
More Decks by Jake Chamberlain
See All by Jake Chamberlain
WP Security
jchamb
2
92
Other Decks in Programming
See All in Programming
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
220
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
500
pixivアプリでマルチモジュールを実現するまで
gatosyocora
1
130
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
180
見た目から始める生産性向上
ikumatadokoro
4
190
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
250
Ruby Pattern Matching
bkuhlmann
0
920
Folding Cheat Sheet #1
philipschwarz
PRO
0
210
Hanami and htmx
bkuhlmann
0
200
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
250
オブジェクト指向のリ・オリエンテーション~歴史を振り返り、AI時代に向きなおる~
hanyudaeiiti
10
5.7k
デザインシステムで Tailwind CSSとCSS in JSに分散投資をしたら良かった話
fsubal
18
4.9k
Featured
See All Featured
RailsConf 2023
tenderlove
2
530
Building Effective Engineering Teams - LeadDev
addyosmani
27
1.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
[RailsConf 2023] Rails as a piece of cake
palkan
22
3.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
Happy Clients
brianwarren
91
6.4k
The Art of Programming - Codeland 2020
erikaheidi
41
12k
Optimizing for Happiness
mojombo
370
69k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Building an army of robots
kneath
300
41k
Web Components: a chance to create the future
zenorocha
305
41k
BBQ
matthewcrist
80
8.7k
Transcript
Content Types Structured Content in Wordpress
3 Major Types of Data • “Post” Types - Content
types. Base building block • Taxonomies - Categorization • Metadata - extra data for objects
Post Types Default types: • Post • Page • Attachment
(media) • Revision • Navigation menu • Post types are the base building blocks. • Typically have a URL. • Two different kinds
Post Types: 2 Kinds Page (Hierarchical)! • Relationships (Parent
- Child) • Template options • Pseudo Static Post (Non-hierarchical)! • Categorized (taxonomies) • Part of a bigger group (Archives) • Single “entries” • Common to have comments
Page (Hierarchical) Post
Taxonomies Default types: • Category • Tags • Grouping mechanism
• The taxonomy is the descriptor of the groups • Like post types two different kinds • Each “group” is called a term
Taxonomies: 2 Kinds Hierarchical! • Relationships (Parent - Child)
Non-hierarchical! • Tag Based
Metadata • Adds extra information to objects • Adds extra
structure • Keeps wysiwyg from being yucky. • Basically everything in has its own form of metadata • 3 Major Classification
Metadata Classifications 1. Options 2. Custom Fields 3. Custom Types
None
Metadata: Options Used as preferences or to fill in information
that is consistent across pages and posts Common Use Cases:! • Settings Menu • Theme Options • Editable Logos
Metadata: Custom Fields Metadata to create structure. Information that belongs
to “something” • Can be one-off or separated into groupings with metaboxes • Use to help make complex information easily editable
Metadata: Custom • Not used much any more. • Developer
focused
So what’s next?
How to Integrate Part 2: We’ll cover plugins to make
integration easy. Custom Post Type UI https://wordpress.org/plugins/custom-post-type-ui/ Advanced Custom Fields https://wordpress.org/plugins/advanced-custom- fields/
Questions?