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
770
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
11
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
16
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
22
Unlocking creativity - Marilia Darilli
wpgr
0
50
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
33
Ioannis Kastorinis - WooCommerce technical automations in the real world
wpgr
0
49
Christos Paloukas - Cache me if you can, a journey through caching layers in WordPress
wpgr
0
55
Ευάγγελος Πάλλης - Malware Cleanup & Protection
wpgr
0
63
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
0
45
Other Decks in Technology
See All in Technology
AI時代にPdMとPMMはどう連携すべきか / PdM–PMM-collaboration-in-AI-era
rakus_dev
0
280
Agile PBL at New Grads Trainings
kawaguti
PRO
1
290
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
30k
「魔法少女まどか☆マギカ Magia Exedra」の必殺技演出を徹底解剖! -キャラクターの魅力を最大限にファンに届けるためのこだわり-
gree_tech
PRO
0
560
AWSで推進するデータマネジメント
kawanago
0
1.1k
Function Body Macros で、SwiftUI の View に Accessibility Identifier を自動付与する/Function Body Macros: Autogenerate accessibility identifiers for SwiftUI Views
miichan
2
170
個人CLAUDE.md紹介と設定から学んだこと/introduce-my-claude-md
shibayu36
0
200
Platform開発が先行する Platform Engineeringの違和感
kintotechdev
2
420
Autonomous Database - Dedicated 技術詳細 / adb-d_technical_detail_jp
oracle4engineer
PRO
4
9.9k
Grafana Meetup Japan Vol. 6
kaedemalu
1
250
AI開発ツールCreateがAnythingになったよ
tendasato
0
110
AI時代に非連続な成長を実現するエンジニアリング戦略
sansantech
PRO
3
1.1k
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Statistics for Hackers
jakevdp
799
220k
Agile that works and the tools we love
rasmusluckow
330
21k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
A designer walks into a library…
pauljervisheath
207
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Rails Girls Zürich Keynote
gr2m
95
14k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
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 :-)