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
790
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
16
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
23
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
29
Unlocking creativity - Marilia Darilli
wpgr
0
61
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
47
Ioannis Kastorinis - WooCommerce technical automations in the real world
wpgr
0
61
Christos Paloukas - Cache me if you can, a journey through caching layers in WordPress
wpgr
0
69
Ευάγγελος Πάλλης - Malware Cleanup & Protection
wpgr
0
74
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
0
59
Other Decks in Technology
See All in Technology
SOTA競争から人間を超える画像認識へ
shinya7y
0
640
激動の時代を爆速リチーミングで乗り越えろ
sansantech
PRO
1
180
実践マルチモーダル検索!
shibuiwilliam
1
440
AWS DMS で SQL Server を移行してみた/aws-dms-sql-server-migration
emiki
0
260
Azure Well-Architected Framework入門
tomokusaba
1
150
組織全員で向き合うAI Readyなデータ利活用
gappy50
5
1.8k
「タコピーの原罪」から学ぶ間違った”支援” / the bad support of Takopii
piyonakajima
0
160
DMMの検索システムをSolrからElasticCloudに移行した話
hmaa_ryo
0
280
AI時代の発信活動 ~技術者として認知してもらうための発信法~ / 20251028 Masaki Okuda
shift_evolve
PRO
1
120
AI機能プロジェクト炎上の 3つのしくじりと学び
nakawai
0
160
OPENLOGI Company Profile for engineer
hr01
1
46k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
14
82k
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
36
7k
Rails Girls Zürich Keynote
gr2m
95
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Making the Leap to Tech Lead
cromwellryan
135
9.6k
Code Review Best Practice
trishagee
72
19k
Building Applications with DynamoDB
mza
96
6.7k
Designing for Performance
lara
610
69k
RailsConf 2023
tenderlove
30
1.3k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Java REST API Framework Comparison - PWX 2021
mraible
34
8.9k
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 :-)