SlideShare a Scribd company logo
1 of 16
Download to read offline
Post Types, Taxonomies
                         En guides tour i WP junglen
       og Post Formats
http://codex.wordpress.org/Template_Hierarchy
Post Types

   • Post


   • Page


   • Attachment


   • Revisions


   • Nav Menus (det nye
     menusystem)




http://codex.wordpress.org/Post_Types
Taxonomy

   • Category


   • Tag


   • Link category




http://codex.wordpress.org/Taxonomies
Post Formats

   • Asides


   • Gallery


   • Link


   • Image


   • Quote


   • Status


   • Video


   • Audio


   • Chat


http://codex.wordpress.org/Post_Formats
Custom Post Types (eksempler)

• Forum
                    • Album


• Produkt
                  • Bolig (til salg)


• Event
                    • Bog


• Form (kontaktformular)
   • Fejl (bug tracking system)


• Film
                     • Plante


• Person
                   • Bil


• Band
                     • Husholdningsmiddel
For alle Custom Post Types gælder det

• At er der en php fil, der har navnet single efterfulgt Post Typen, så
  bruger WP den i stedet post.php eller single.php

• At er der en arkiv php fil der har navnet archive efterfulgt af Post
  Typen, så bruger WP den i stedet archive.php

 


• Så hvis du har oprettet en Post Type, som hedder bog, så kopier fx
  single.php over i en ny fil der hedder single-bog.php og kopier
  archive.php over i en fil der hedder archive-bog.php

• Og ret dem så til, så de passer til den visning du gerne vil have :-)
Custom Taxonomies (eksempler)

• Designer
            • Tilsætningsstof


• Bilmærke
            • E-nummer


• Øjenfarve
           • Styresystem


• Årstid
              • RAM i MB


• Spillested
          • Type mad


• Genre
               • Ingrediens 


• Mærke
               • Jobområde


• Producent
           • Politisk orientering
For alle Custom Taxonomies gælder det

• At WP vælger filerne i denne rækkefølge, og så snart WP finder en match, så leder
  den ikke videre. I dette tilfælde er det en Custom Taxonomy som hedder spillested.

  taxonomy-spillested-vega.php

     taxonomy-spillested.php

       taxonomy.php

          archive.php

• Så hvis du har oprettet en Custom Taxonomy, som hedder spillested, så kopier fx
  tag.php eller archive.php over i en ny fil der hedder taxonomy-spillested.php

• Og ret dem så til, så de passer til den visning du gerne vil have :-)
Custom Post Types og Custom Taxonomies

         Post Type                  Taxonomy


           Band                Medlemmer, genre

                          Skuespiller, instruktør, genre,
            Film                   producent,
                            manuskriptforfatter osv.
                              E-numre, kemikalier,
     Husholdningsmiddel
                                  producent
                           Styrke på scoville skalaen,
            Chili         størrelse af chili, størrelse af
                                   plante osv.
Tak for opmærksomheden



   thomas@designgrotten.dk 

   dk.linkedin.com/in/tclausen 

   designgrotten.dk 

   facebook.com/designgrotten

   twitter.com/designgrotten og @tntc1978

   plus.google.com/100954153319336487530 

   plus.google.com/116696642493514780645 

   last.fm/user/tntc1978

More Related Content

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Post Types, Post Formats og Taxonomies WordCamp CPH 13. november

  • 1. Post Types, Taxonomies En guides tour i WP junglen og Post Formats
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Post Types • Post • Page • Attachment • Revisions • Nav Menus (det nye menusystem) http://codex.wordpress.org/Post_Types
  • 9. Taxonomy • Category • Tag • Link category http://codex.wordpress.org/Taxonomies
  • 10. Post Formats • Asides • Gallery • Link • Image • Quote • Status • Video • Audio • Chat http://codex.wordpress.org/Post_Formats
  • 11. Custom Post Types (eksempler) • Forum • Album • Produkt • Bolig (til salg) • Event • Bog • Form (kontaktformular) • Fejl (bug tracking system) • Film • Plante • Person • Bil • Band • Husholdningsmiddel
  • 12. For alle Custom Post Types gælder det • At er der en php fil, der har navnet single efterfulgt Post Typen, så bruger WP den i stedet post.php eller single.php • At er der en arkiv php fil der har navnet archive efterfulgt af Post Typen, så bruger WP den i stedet archive.php • Så hvis du har oprettet en Post Type, som hedder bog, så kopier fx single.php over i en ny fil der hedder single-bog.php og kopier archive.php over i en fil der hedder archive-bog.php • Og ret dem så til, så de passer til den visning du gerne vil have :-)
  • 13. Custom Taxonomies (eksempler) • Designer • Tilsætningsstof • Bilmærke • E-nummer • Øjenfarve • Styresystem • Årstid • RAM i MB • Spillested • Type mad • Genre • Ingrediens • Mærke • Jobområde • Producent • Politisk orientering
  • 14. For alle Custom Taxonomies gælder det • At WP vælger filerne i denne rækkefølge, og så snart WP finder en match, så leder den ikke videre. I dette tilfælde er det en Custom Taxonomy som hedder spillested. taxonomy-spillested-vega.php taxonomy-spillested.php taxonomy.php archive.php • Så hvis du har oprettet en Custom Taxonomy, som hedder spillested, så kopier fx tag.php eller archive.php over i en ny fil der hedder taxonomy-spillested.php • Og ret dem så til, så de passer til den visning du gerne vil have :-)
  • 15. Custom Post Types og Custom Taxonomies Post Type Taxonomy Band Medlemmer, genre Skuespiller, instruktør, genre, Film producent, manuskriptforfatter osv. E-numre, kemikalier, Husholdningsmiddel producent Styrke på scoville skalaen, Chili størrelse af chili, størrelse af plante osv.
  • 16. Tak for opmærksomheden thomas@designgrotten.dk dk.linkedin.com/in/tclausen designgrotten.dk facebook.com/designgrotten twitter.com/designgrotten og @tntc1978 plus.google.com/100954153319336487530 plus.google.com/116696642493514780645 last.fm/user/tntc1978