SlideShare una empresa de Scribd logo
1 de 15
The Flexibility of WordPress
Multiple Content Types
• Pages
  – Main site pages
  – Apply templates for advanced functionality
  – Are hierarchical (can have parent/child relationships)
• Posts
  – Flexible for any content, anywhere
  – Tags and categories allow content segmentation
  – Not hierarchical
• Custom Post Types
  – Provide a separate interface for totally custom content
  – Create if default Posts are in use already (ie. a blog)
  – OR for highly special content that doesn’t fit normal post
    schema (home page slider)
  – Can be hierarchical, but are not by default
Page Templates
• Used when layout or functionality doesn’t
  match the rest of the theme and cannot be
  added through the post editor
• Examples
  – Highly specialized forms
  – Precisely placed elements, like maps
  – Single column instead of theme’s regular two
  – Specific scripts only needed on that page
  – Other special layouts
  – Members-only or other protected areas
Implementing Page Templates
• Two main ways
  – From Page Editor
     • Works only for Pages
     • End-user is able to change
  – With get_template_part() and a conditional
    statement
     • Done on a theme level
     • Provides way to get any template from anywhere, even
       if it’s just a small piece (like social media links or a
       gallery)
Post Tags and Categories
• Both provide a way to group and navigate content
• Both are searchable and form archive pages by default
• Categories
   – Umbrella groups for similar content topics
   – Are hierarchical (can have parent/child relationships)
   – Use to separate content but still use the default post editor
• Tags
   – Like keywords
   – Especially useful for blogs to connect topics
   – Also useful for ecommerce
• Analogy for Use
   – A book store would categorize by genre, but tag each book
     with the author
Custom Taxonomies
• Categories and Tags are “taxonomies”
• Custom Taxonomies essentially work the
  same, but are more easily distinguishable
• Book Store Example
  – “Genre” would be a custom taxonomy instead of
    using the default categories
  – “Author” would be created instead of using tags
Custom Post Types (CPT)
• Useful to make specialized content readily
  accessible to end-users
• Can be made inaccessible by search, and
  therefore be used to insert and organize small
  bits of content
  – Example: Sliders
• Only include the interface elements needed
  – ie. only the Title, Editor, and Featured Image and
    not Categories or Tags
Custom Fields
• Provide additional post meta for Posts or Pages
  via customized UI elements
• Any form field can be used to get additional data
• How to Use
  –   DO use for variable data
  –   DO use to make content easier for end-user to edit
  –   DO use to insert content and retain theme styling
  –   DO NOT use when the data needs to form
      relationships between posts/pages – use a taxonomy
      instead
Custom Fields
• Favorite Uses
  – Checkbox to mark as a featured post
  – Radio to place in a specific area
  – Checkboxes to add product features
  – A series of rich-editor enabled textareas to add
    content to a special layout (especially from CPT)
  – Extra upload for specific media display/output
Creating CPT, Custom Taxonomies,
        and Custom Fields


          Demo of
   Easy Custom Post Types
           plugin
Plan for Next Sessions
• How to Get What You Want: Part I
   – Basic theme tags
   – The WordPress Loop, and how to Query
• How to Get What You Want: Part II
   – Conditional Statements, Custom Fields, and get_template_part()
• Helping the End User Part I
   – Shortcodes v. Custom Fields
• Helping the End User Part II
   – Theme Options
• Plugins and Functions
   – When to use
   – Functionality plugins vs. functions.php
   – Recommended plugins
• Defending Themes From End-Users
   – Final setup of user accounts and training
Resources
• The WordPress Codex
  – Your new best friend, so go get friendly
    http://codex.wordpress.org/
• Pages
  – http://codex.wordpress.org/Pages
  – Page Templates
     • Create basic template:
       http://codex.wordpress.org/Pages#Creating_Your_Own_Pag
       e_Templates

• Post Types
  – About various post types
    http://codex.wordpress.org/Post_Types
Resources
• Taxonomies
  – Basics
     http://justintadlock.com/archives/2010/06/10/a-
    refresher-on-custom-taxonomies
  – More on implementation
    http://justintadlock.com/archives/2011/10/20/cu
    stom-user-taxonomies-in-wordpress
Resources
• Taxonomies
  – Basics
     http://justintadlock.com/archives/2010/06/10/a-
    refresher-on-custom-taxonomies
  – More on implementation
    http://justintadlock.com/archives/2011/10/20/cu
    stom-user-taxonomies-in-wordpress
Resources
• Recommended RSS Feeds
  – Link to my Google Reader xml file
    (edit out one’s you already have, then import to
    your reader)
     http://dl.dropbox.com/u/26817239/stephs-
    wordpress-rss.xml

Más contenido relacionado

La actualidad más candente

American University WordPress Theming Lecture
American University WordPress Theming LectureAmerican University WordPress Theming Lecture
American University WordPress Theming Lecture
Aaron Brazell
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelona
hernanibf
 

La actualidad más candente (20)

WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 
WordPress as a CMS v2
WordPress as a CMS v2WordPress as a CMS v2
WordPress as a CMS v2
 
Drupal - Introduction to Drupal Menu and Theme Management
Drupal - Introduction to Drupal Menu and Theme  ManagementDrupal - Introduction to Drupal Menu and Theme  Management
Drupal - Introduction to Drupal Menu and Theme Management
 
W pthemes
W pthemesW pthemes
W pthemes
 
WordPress Themes 101 - dotEduGuru Summit 2013
WordPress Themes 101 - dotEduGuru Summit 2013WordPress Themes 101 - dotEduGuru Summit 2013
WordPress Themes 101 - dotEduGuru Summit 2013
 
Sagar presentation
Sagar presentationSagar presentation
Sagar presentation
 
Content-Driven WordPress Development - WordCamp Omaha 2014
Content-Driven WordPress Development - WordCamp Omaha 2014Content-Driven WordPress Development - WordCamp Omaha 2014
Content-Driven WordPress Development - WordCamp Omaha 2014
 
advance theme development
advance theme developmentadvance theme development
advance theme development
 
WordPress Themes 101 - HighEdWeb New England 2013
WordPress Themes 101 - HighEdWeb New England 2013WordPress Themes 101 - HighEdWeb New England 2013
WordPress Themes 101 - HighEdWeb New England 2013
 
WordPress Theme Workshop: Part 2
WordPress Theme Workshop: Part 2WordPress Theme Workshop: Part 2
WordPress Theme Workshop: Part 2
 
The very introduction to content management systems
The very introduction to content management systemsThe very introduction to content management systems
The very introduction to content management systems
 
American University WordPress Theming Lecture
American University WordPress Theming LectureAmerican University WordPress Theming Lecture
American University WordPress Theming Lecture
 
Visual Design for Content Management Systems
Visual Design for Content Management SystemsVisual Design for Content Management Systems
Visual Design for Content Management Systems
 
Drupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon BarcelonaDrupal architectures for flexible content - Drupalcon Barcelona
Drupal architectures for flexible content - Drupalcon Barcelona
 
Drupal for Non-Developers
Drupal for Non-DevelopersDrupal for Non-Developers
Drupal for Non-Developers
 
Wp Themes
Wp ThemesWp Themes
Wp Themes
 
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
 
Drupal: Organizing Content for Multiple Audiences
Drupal: Organizing Content for Multiple AudiencesDrupal: Organizing Content for Multiple Audiences
Drupal: Organizing Content for Multiple Audiences
 
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs;  Wor...
WordPress 101 - Self-Administered Small Business Web Sites and/or Blogs; Wor...
 
Add Custom Post Types to Your WordPress Website
Add Custom Post Types to Your WordPress WebsiteAdd Custom Post Types to Your WordPress Website
Add Custom Post Types to Your WordPress Website
 

Similar a The Flexibility of WordPress

Custom Post Types in Depth at WordCamp Montreal
Custom Post Types in Depth at WordCamp MontrealCustom Post Types in Depth at WordCamp Montreal
Custom Post Types in Depth at WordCamp Montreal
Joey Kudish
 
The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
Stephanie Leary
 

Similar a The Flexibility of WordPress (20)

Custom Post Types in Depth at WordCamp Montreal
Custom Post Types in Depth at WordCamp MontrealCustom Post Types in Depth at WordCamp Montreal
Custom Post Types in Depth at WordCamp Montreal
 
Newspapers with WordPress
Newspapers with WordPressNewspapers with WordPress
Newspapers with WordPress
 
WordPress - Open Source Overview Presentation
WordPress - Open Source Overview PresentationWordPress - Open Source Overview Presentation
WordPress - Open Source Overview Presentation
 
WordPress can do that?!
WordPress can do that?!WordPress can do that?!
WordPress can do that?!
 
WordPress Template hierarchy
WordPress Template hierarchyWordPress Template hierarchy
WordPress Template hierarchy
 
CapitalCamp DC 2012: Taxonomy
CapitalCamp DC 2012: TaxonomyCapitalCamp DC 2012: Taxonomy
CapitalCamp DC 2012: Taxonomy
 
The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
 
Starting WordPress Theme Review
Starting WordPress Theme ReviewStarting WordPress Theme Review
Starting WordPress Theme Review
 
Websites With Wordpress
Websites With WordpressWebsites With Wordpress
Websites With Wordpress
 
IA& Taxonomy Planning for SharePoint Online & Office 365
IA& Taxonomy Planning for SharePoint Online & Office 365IA& Taxonomy Planning for SharePoint Online & Office 365
IA& Taxonomy Planning for SharePoint Online & Office 365
 
Using Custom Post Types and Advanced Custom Fields with Elementor
 Using Custom Post Types and Advanced Custom Fields with Elementor Using Custom Post Types and Advanced Custom Fields with Elementor
Using Custom Post Types and Advanced Custom Fields with Elementor
 
Wordpress Custom Post Types
Wordpress Custom Post TypesWordpress Custom Post Types
Wordpress Custom Post Types
 
WordPress Blogs 101
WordPress Blogs 101WordPress Blogs 101
WordPress Blogs 101
 
WordPress custom posts types for structured content
WordPress custom posts types for structured contentWordPress custom posts types for structured content
WordPress custom posts types for structured content
 
Wordpress theme development
Wordpress theme developmentWordpress theme development
Wordpress theme development
 
From 0 to 100 with Content types
From 0 to 100 with Content typesFrom 0 to 100 with Content types
From 0 to 100 with Content types
 
Custom post types - WordPress
Custom post types - WordPressCustom post types - WordPress
Custom post types - WordPress
 
How to annotate_with_wordpress
How to annotate_with_wordpressHow to annotate_with_wordpress
How to annotate_with_wordpress
 
Beginning WordPress Workshop
Beginning WordPress WorkshopBeginning WordPress Workshop
Beginning WordPress Workshop
 

Último

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

The Flexibility of WordPress

  • 1. The Flexibility of WordPress
  • 2. Multiple Content Types • Pages – Main site pages – Apply templates for advanced functionality – Are hierarchical (can have parent/child relationships) • Posts – Flexible for any content, anywhere – Tags and categories allow content segmentation – Not hierarchical • Custom Post Types – Provide a separate interface for totally custom content – Create if default Posts are in use already (ie. a blog) – OR for highly special content that doesn’t fit normal post schema (home page slider) – Can be hierarchical, but are not by default
  • 3. Page Templates • Used when layout or functionality doesn’t match the rest of the theme and cannot be added through the post editor • Examples – Highly specialized forms – Precisely placed elements, like maps – Single column instead of theme’s regular two – Specific scripts only needed on that page – Other special layouts – Members-only or other protected areas
  • 4. Implementing Page Templates • Two main ways – From Page Editor • Works only for Pages • End-user is able to change – With get_template_part() and a conditional statement • Done on a theme level • Provides way to get any template from anywhere, even if it’s just a small piece (like social media links or a gallery)
  • 5. Post Tags and Categories • Both provide a way to group and navigate content • Both are searchable and form archive pages by default • Categories – Umbrella groups for similar content topics – Are hierarchical (can have parent/child relationships) – Use to separate content but still use the default post editor • Tags – Like keywords – Especially useful for blogs to connect topics – Also useful for ecommerce • Analogy for Use – A book store would categorize by genre, but tag each book with the author
  • 6. Custom Taxonomies • Categories and Tags are “taxonomies” • Custom Taxonomies essentially work the same, but are more easily distinguishable • Book Store Example – “Genre” would be a custom taxonomy instead of using the default categories – “Author” would be created instead of using tags
  • 7. Custom Post Types (CPT) • Useful to make specialized content readily accessible to end-users • Can be made inaccessible by search, and therefore be used to insert and organize small bits of content – Example: Sliders • Only include the interface elements needed – ie. only the Title, Editor, and Featured Image and not Categories or Tags
  • 8. Custom Fields • Provide additional post meta for Posts or Pages via customized UI elements • Any form field can be used to get additional data • How to Use – DO use for variable data – DO use to make content easier for end-user to edit – DO use to insert content and retain theme styling – DO NOT use when the data needs to form relationships between posts/pages – use a taxonomy instead
  • 9. Custom Fields • Favorite Uses – Checkbox to mark as a featured post – Radio to place in a specific area – Checkboxes to add product features – A series of rich-editor enabled textareas to add content to a special layout (especially from CPT) – Extra upload for specific media display/output
  • 10. Creating CPT, Custom Taxonomies, and Custom Fields Demo of Easy Custom Post Types plugin
  • 11. Plan for Next Sessions • How to Get What You Want: Part I – Basic theme tags – The WordPress Loop, and how to Query • How to Get What You Want: Part II – Conditional Statements, Custom Fields, and get_template_part() • Helping the End User Part I – Shortcodes v. Custom Fields • Helping the End User Part II – Theme Options • Plugins and Functions – When to use – Functionality plugins vs. functions.php – Recommended plugins • Defending Themes From End-Users – Final setup of user accounts and training
  • 12. Resources • The WordPress Codex – Your new best friend, so go get friendly http://codex.wordpress.org/ • Pages – http://codex.wordpress.org/Pages – Page Templates • Create basic template: http://codex.wordpress.org/Pages#Creating_Your_Own_Pag e_Templates • Post Types – About various post types http://codex.wordpress.org/Post_Types
  • 13. Resources • Taxonomies – Basics http://justintadlock.com/archives/2010/06/10/a- refresher-on-custom-taxonomies – More on implementation http://justintadlock.com/archives/2011/10/20/cu stom-user-taxonomies-in-wordpress
  • 14. Resources • Taxonomies – Basics http://justintadlock.com/archives/2010/06/10/a- refresher-on-custom-taxonomies – More on implementation http://justintadlock.com/archives/2011/10/20/cu stom-user-taxonomies-in-wordpress
  • 15. Resources • Recommended RSS Feeds – Link to my Google Reader xml file (edit out one’s you already have, then import to your reader) http://dl.dropbox.com/u/26817239/stephs- wordpress-rss.xml