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
WordPress Greek Community - Workshop @ TEI Thes...
Search
WordPress Greek Community
September 18, 2015
Technology
1
720
WordPress Greek Community - Workshop @ TEI Thessaly - Custom Post Types and Taxonomies - Takis Bouyouris
WordPress Greek Community
September 18, 2015
Tweet
Share
More Decks by WordPress Greek Community
See All by WordPress Greek Community
CSS 101: Τα μυστικά του στυλ - Χάρης Βαλτζής
wpgr
0
8
Ολοκλήρωσα το SiteΜουNowWhat? - Στέφανος Παρασκευόπουλος
wpgr
0
7
Effective personal and business branding - Maria Zarotiadou
wpgr
0
9
Web Accessibility: Hardships, pitfalls, opportunities, and preparing for European Accessibility Act 2025 - Χρήστος Μπαφέρας
wpgr
0
15
Code, Test, Repeat: Accelerating Development with WordPress Playground - Uros Tasic
wpgr
0
12
Make your users’ search experience great - Nico Orfanos
wpgr
0
19
WooCommerce Automations: Revolutionizing eCommerce with Practical Solutions - Ioannis Kastorinis
wpgr
0
20
Block themes: The future of Full Site Editing and what to expect from WordPress 6.7 - Alexandros Kaounas
wpgr
0
17
Forking the GPL way - Βαγγέλης Παπαϊωάννου, Ορέστης Σαμαράς
wpgr
0
13
Other Decks in Technology
See All in Technology
メンタル面でもつよつよエンジニアになる/登壇資料(井田 献一朗)
hacobu
0
170
Denoで作るチーム開発生産性向上のためのCLIツール
sansantech
PRO
0
120
30分でわかるデータ分析者のためのディメンショナルモデリング #datatechjp / 20250120
kazaneya
PRO
11
3.3k
[JAWS-UG新潟#20] re:Invent2024 -CloudOperationsアップデートについて-
shintaro_fukatsu
0
150
The key to VCP-VCF
mirie_sd
0
150
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
280
Qiita埋め込み用スライド
naoki_0531
0
5.5k
Opcodeを読んでいたら何故かphp-srcを読んでいた話
murashotaro
0
360
20241220_S3 tablesの使い方を検証してみた
handy
4
850
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
6
54k
ガバナンスを支える新サービス / New Services to Support Governance
sejima1105
1
920
最近のSfM手法まとめ - COLMAP / GLOMAPを中心に -
kwchrk
8
1.7k
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
5
190
How to Think Like a Performance Engineer
csswizardry
22
1.3k
The Language of Interfaces
destraynor
155
24k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
330
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
GraphQLとの向き合い方2022年版
quramy
44
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Designing for Performance
lara
604
68k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Transcript
Custom Post Types and Taxonomies Takis Bouyouris Web Developer @
Nevma WordPress Greek Community Workshop @ TEI Thessaly Larissa – Sat. 11/07/2015
Nice to meet you My name is Takis Bouyouris web
developer @ Nevma
My goal today Help you understand what custom post types
and taxonomies are and motivate you to use them
What is WordPress?
None
WordPress A blog engine, a CMS, or an application platform?
Well, it's all of the above! But how did this
come to be? Some history...
Oh, nooo, not history!
WordPress v.1 - 2004
WordPress v.2 – 2005/6
WordPress v.2.5 - 2008
WordPress v.3.0 - 2010
WordPress v.4.0 - 2014
WordPress evolution not just design-wise
WordPress has evolved into a full featured CMS and an
application platform
Since v.3 WordPress supports Custom post types Custom taxonomies
Custom post types are like posts and pages Custom taxonomies
are like categories and tags
So, we 've got posts, pages, categories and tags and
... more posts, more pages, more categories and more tags?
That all?
No! What you have is an extensible data structure functionality.
Extensible data structures!
Extensible data structures that are simple and accessible!
Custom post types Create a new area of special pages
and name it what you like/need
Custom taxonomies Create a new ways to categorise the post
types you manage
Example 1 a video club Custom post type => movie
Custom taxonomies => category, studio, country
Example 2 a house broker Custom post type => house
Custom taxonomies => house type, area, usage
Example 3 corporate website common patterns Pages => corporate info
Posts => news/blog
Example 3 (cont'd) Custom post type => projects Custom taxonomies
=> project category, project area
Example 3 (cont'd) Pages => Home page Profile Products Contact
etc
Example 3 (cont'd) Posts (news) => Our new website online
Summer sales this week Latest products Fiscal report 2015 etc
Example 3 (cont'd) Custom Post Type Projects => Sportswear eshop
Insurance company website Corporate website etc
Example 3 (cont'd) Custom Taxonomies Project category => website, eshop,
design, etc Project area => Athens, Larissa, Veroia, etc
Let's make a custom post type from scratch
OMG, he's gonna show code now!
None
OK, that was code!
None
The important bits name taxonomies hierarchical capability
Let's make a custom taxonomy from scratch
OMG somebody stop him!
None
Yeap, that was code again!
None
The important bits name post_types hierarchical
Relax! There are tools to generate this code "Generate WP"
http://generatewp.com
None
There are plugins with a UI "GD Custom Post Types
and Taxonomies Tools" https://wordpress.org/plugins/gd-taxonomies-tools/
None
So, not so bad after all...
Custom post types and taxonomies are great, but we also
need the templates to show them Meet the "template hierarchy" https://developer.wordpress.org/themes/basics/template-hierarchy/
"Template hierarchy" The WordPress way to define which PHP template
will be chosen to handle each user request. Necessary for theming.
Template hierarchy
Let's zoom in a bit
Theme PHP files
Check it out interactively with http://wphierarchy.com/
To sum up Custom post types are extensible data structures
(the WordPress way) and custom taxonomies are new ways to categorise them
None
WordPress Greek Community Facebook https://facebook.com/groups/WordPressGreekCommunity/ Twitter https://twitter.com/wordpressgrcomm/ Website http://www.wpgc.gr/ http://www.wpgreece.org/
Thank you for listening!
Questions?
Takis Bouyouris, Nevma
[email protected]
https://www.facebook.com/takis.bouyouris https://www.linkedin.com/in/takisbouyouris Sorry and thank you
SNL :-)