$30 off During Our Annual Pro Sale. View Details »
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
800
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
Thanassis Zannias - Flexible WordPress Dev Environment with Docker
wpgr
0
32
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
37
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
40
Unlocking creativity - Marilia Darilli
wpgr
0
74
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
56
Ioannis Kastorinis - WooCommerce technical automations in the real world
wpgr
0
71
Christos Paloukas - Cache me if you can, a journey through caching layers in WordPress
wpgr
0
78
Ευάγγελος Πάλλης - Malware Cleanup & Protection
wpgr
0
90
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
0
69
Other Decks in Technology
See All in Technology
MLflowで始めるプロンプト管理、評価、最適化
databricksjapan
1
250
業務のトイルをバスターせよ 〜AI時代の生存戦略〜
staka121
PRO
2
200
30分であなたをOmniのファンにしてみせます~分析画面のクリック操作をそのままコード化できるAI-ReadyなBIツール~
sagara
0
150
「図面」から「法則」へ 〜メタ視点で読み解く現代のソフトウェアアーキテクチャ〜
scova0731
0
230
文字列の並び順 / Unicode Collation
tmtms
3
590
AIの長期記憶と短期記憶の違いについてAgentCoreを例に深掘ってみた
yakumo
4
350
Power of Kiro : あなたの㌔はパワステ搭載ですか?
r3_yamauchi
PRO
0
160
今年のデータ・ML系アップデートと気になるアプデのご紹介
nayuts
1
410
5分で知るMicrosoft Ignite
taiponrock
PRO
0
380
モダンデータスタック (MDS) の話とデータ分析が起こすビジネス変革
sutotakeshi
0
500
プロンプトやエージェントを自動的に作る方法
shibuiwilliam
11
9.3k
Snowflakeでデータ基盤を もう一度作り直すなら / rebuilding-data-platform-with-snowflake
pei0804
6
1.6k
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Statistics for Hackers
jakevdp
799
230k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
The Cult of Friendly URLs
andyhume
79
6.7k
Designing Experiences People Love
moore
143
24k
Unsuck your backbone
ammeep
671
58k
Embracing the Ebb and Flow
colly
88
4.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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 :-)