SlideShare a Scribd company logo
WordPress Customization
Goal: Gain a basic understanding of some common functions used by Clique from the
WordPress PHP API, modifying the administrator user-interface, and present various data
formats.
Outcomes:
1. An understanding of what Post Types and Custom Fields are.
2. Be able to identify when to use Custom Post Types and Custom Fields.
3. Able to create and modify Custom Post Types and Custom Fields.
Custom Post Types
Outcomes:
1. Create two Custom Post Types using the WordPress API
2. Modify an existing Custom Post Type
3. Be able query and display post information within page templates
4. Acknowledge when to use Custom Post Types in different situations
Custom Fields
Outcomes:
1. Create custom fields for different post types
2. Gain an understanding of how to save, update, and delete custom post data
3. Acknowledge when to use Custom Fields in different situations
Agenda
1. Why we use various post types.
2. How do I use this in my work, best practices
3. Client example, adding post type to Kendall College site.
4. Adding post type to your forked site
Understanding Why
Why is it important to know how to create Custom Post Types and Fields - especially
programmatically?
1. Present similar data in different ways
2. Present different data in similar ways
3. “Administrative Organization” - a well-organized user and programming interface.
Why - Second City
● Large and complex website
● Must present varying data types in varying
formats
● Each “post” has multiple, varying pieces of
metadata attached to it
● Data types required their own unique
categorization system
Why - Hampel & Co.
● Content isn’t updated regularly
● Data has similar format, but needed to be
presented in different ways
● Each “post” has a wide range of varying
metadata in different formats
Planning
• Create Post Types
– Identify “groups” of data and information
• What content blocks are similar?
• What content blocks are different?
• Create Custom Fields
– Identify data/information that should be attached to post as metadata
Best Practices/Example
Building
• Required hooks
– add_action
• init
• save_post
• Create Post Types
– register_post_type
• Create Custom Fields
– add_meta_box
Best Practices/Example
Testing
• Ensure post appears in back-end of WordPress
• Ensure data is being saved appropriately
• Loop through custom posts and fields on a page
Best Practices/Example
You do
● Programmatically add 3 custom post types
to your own personal sites
● Programmatically add 3 custom fields to
your own personal sites
Resources
Post Type
● https://codex.wordpress.org/Post_Types
● http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/
Fields
● https://codex.wordpress.org/Custom_Fields
● http://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/
● https://generatewp.com/
Wordpress Custom Post Types

More Related Content

What's hot

Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
DignitasDigital1
 
Open Source Content Management Systems
Open Source Content Management SystemsOpen Source Content Management Systems
Open Source Content Management Systems
Matthew Turland
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
Stephanie Leary
 
Visual Design for Content Management Systems
Visual Design for Content Management SystemsVisual Design for Content Management Systems
Visual Design for Content Management Systems
Dani Nordin
 
Bootstrap
BootstrapBootstrap
Bootstrap
Prem Sanil
 
The Flexibility of WordPress
The Flexibility of WordPressThe Flexibility of WordPress
The Flexibility of WordPress
Stephanie Eckles
 
WordPress Code Architecture
WordPress Code ArchitectureWordPress Code Architecture
WordPress Code Architecture
Mario Peshev
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
Stephanie Leary
 
Presentation on web designing
Presentation on web designingPresentation on web designing
Presentation on web designing
Nidhi Sharma
 
Synapseindia drupal intro 0
Synapseindia drupal intro 0Synapseindia drupal intro 0
Synapseindia drupal intro 0
saritasingh19866
 
Web dev#1
Web dev#1Web dev#1
Web dev#1
Richard Bao
 
14 technologies every web developer should be able to understand
14 technologies every web developer should be able to understand14 technologies every web developer should be able to understand
14 technologies every web developer should be able to understand
Um e Farwa
 
WordPress Architecture For Beginners
WordPress Architecture For Beginners WordPress Architecture For Beginners
WordPress Architecture For Beginners
Tortoise and Hare Software
 
SharePointArchitecture2
SharePointArchitecture2SharePointArchitecture2
SharePointArchitecture2
Bipin Pankhania
 
Miami2015
Miami2015Miami2015
Miami2015
DevinVinson
 

What's hot (15)

Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
 
Open Source Content Management Systems
Open Source Content Management SystemsOpen Source Content Management Systems
Open Source Content Management Systems
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 
Visual Design for Content Management Systems
Visual Design for Content Management SystemsVisual Design for Content Management Systems
Visual Design for Content Management Systems
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
The Flexibility of WordPress
The Flexibility of WordPressThe Flexibility of WordPress
The Flexibility of WordPress
 
WordPress Code Architecture
WordPress Code ArchitectureWordPress Code Architecture
WordPress Code Architecture
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
 
Presentation on web designing
Presentation on web designingPresentation on web designing
Presentation on web designing
 
Synapseindia drupal intro 0
Synapseindia drupal intro 0Synapseindia drupal intro 0
Synapseindia drupal intro 0
 
Web dev#1
Web dev#1Web dev#1
Web dev#1
 
14 technologies every web developer should be able to understand
14 technologies every web developer should be able to understand14 technologies every web developer should be able to understand
14 technologies every web developer should be able to understand
 
WordPress Architecture For Beginners
WordPress Architecture For Beginners WordPress Architecture For Beginners
WordPress Architecture For Beginners
 
SharePointArchitecture2
SharePointArchitecture2SharePointArchitecture2
SharePointArchitecture2
 
Miami2015
Miami2015Miami2015
Miami2015
 

Similar to Wordpress Custom Post Types

Advanced Intro to Wordpress
Advanced Intro to WordpressAdvanced Intro to Wordpress
Advanced Intro to Wordpress
Clique Studios
 
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
Firestorm Creative Studios
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress plugin
ylefebvre
 
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
 
SharePoint solution developer exam 70-488
SharePoint solution developer exam 70-488SharePoint solution developer exam 70-488
SharePoint solution developer exam 70-488
Ahmed Tawfik
 
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
Stephanie Eckles
 
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
Angela Bowman
 
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
Dustin Hartzler
 
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
Joanne Klein
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post Types
Joe Querin
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
OpenSource Technologies Pvt. Ltd.
 
Word Press Basics
Word Press BasicsWord Press Basics
Word Press Basics
LucWrite
 
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom FieldsWordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
Joe Querin
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
Stephanie Leary
 
WordPress 3 Custom Post Types
WordPress 3 Custom Post TypesWordPress 3 Custom Post Types
WordPress 3 Custom Post Types
Dave Zille
 
Content Modeling: How to Structure Your Content
Content Modeling: How to Structure Your ContentContent Modeling: How to Structure Your Content
Content Modeling: How to Structure Your Content
Lacey Kruger
 
How to annotate_with_wordpress
How to annotate_with_wordpressHow to annotate_with_wordpress
How to annotate_with_wordpress
STIinnsbruck
 
Sps durham james_h
Sps durham james_hSps durham james_h
Sps durham james_h
James Hunter
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologies
TOPS Technologies
 
WP 201 Custom Post Types - Custom Fields - WordCamp Columbus 2015
WP 201   Custom Post Types - Custom Fields - WordCamp Columbus 2015WP 201   Custom Post Types - Custom Fields - WordCamp Columbus 2015
WP 201 Custom Post Types - Custom Fields - WordCamp Columbus 2015
Joe Querin
 

Similar to Wordpress Custom Post Types (20)

Advanced Intro to Wordpress
Advanced Intro to WordpressAdvanced Intro to Wordpress
Advanced Intro to Wordpress
 
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
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress plugin
 
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
 
SharePoint solution developer exam 70-488
SharePoint solution developer exam 70-488SharePoint solution developer exam 70-488
SharePoint solution developer exam 70-488
 
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
 
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
 
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
 
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
 
WP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post TypesWP 101 - Custom Fields & Post Types
WP 101 - Custom Fields & Post Types
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Word Press Basics
Word Press BasicsWord Press Basics
Word Press Basics
 
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom FieldsWordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
 
WordPress 3 Custom Post Types
WordPress 3 Custom Post TypesWordPress 3 Custom Post Types
WordPress 3 Custom Post Types
 
Content Modeling: How to Structure Your Content
Content Modeling: How to Structure Your ContentContent Modeling: How to Structure Your Content
Content Modeling: How to Structure Your Content
 
How to annotate_with_wordpress
How to annotate_with_wordpressHow to annotate_with_wordpress
How to annotate_with_wordpress
 
Sps durham james_h
Sps durham james_hSps durham james_h
Sps durham james_h
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologies
 
WP 201 Custom Post Types - Custom Fields - WordCamp Columbus 2015
WP 201   Custom Post Types - Custom Fields - WordCamp Columbus 2015WP 201   Custom Post Types - Custom Fields - WordCamp Columbus 2015
WP 201 Custom Post Types - Custom Fields - WordCamp Columbus 2015
 

Recently uploaded

Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Undress Baby
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Envertis Software Solutions
 

Recently uploaded (20)

Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
 

Wordpress Custom Post Types

  • 1.
  • 2. WordPress Customization Goal: Gain a basic understanding of some common functions used by Clique from the WordPress PHP API, modifying the administrator user-interface, and present various data formats. Outcomes: 1. An understanding of what Post Types and Custom Fields are. 2. Be able to identify when to use Custom Post Types and Custom Fields. 3. Able to create and modify Custom Post Types and Custom Fields.
  • 3. Custom Post Types Outcomes: 1. Create two Custom Post Types using the WordPress API 2. Modify an existing Custom Post Type 3. Be able query and display post information within page templates 4. Acknowledge when to use Custom Post Types in different situations
  • 4. Custom Fields Outcomes: 1. Create custom fields for different post types 2. Gain an understanding of how to save, update, and delete custom post data 3. Acknowledge when to use Custom Fields in different situations
  • 5. Agenda 1. Why we use various post types. 2. How do I use this in my work, best practices 3. Client example, adding post type to Kendall College site. 4. Adding post type to your forked site
  • 6. Understanding Why Why is it important to know how to create Custom Post Types and Fields - especially programmatically? 1. Present similar data in different ways 2. Present different data in similar ways 3. “Administrative Organization” - a well-organized user and programming interface.
  • 7. Why - Second City ● Large and complex website ● Must present varying data types in varying formats ● Each “post” has multiple, varying pieces of metadata attached to it ● Data types required their own unique categorization system
  • 8. Why - Hampel & Co. ● Content isn’t updated regularly ● Data has similar format, but needed to be presented in different ways ● Each “post” has a wide range of varying metadata in different formats
  • 9. Planning • Create Post Types – Identify “groups” of data and information • What content blocks are similar? • What content blocks are different? • Create Custom Fields – Identify data/information that should be attached to post as metadata Best Practices/Example
  • 10.
  • 11. Building • Required hooks – add_action • init • save_post • Create Post Types – register_post_type • Create Custom Fields – add_meta_box Best Practices/Example
  • 12.
  • 13.
  • 14. Testing • Ensure post appears in back-end of WordPress • Ensure data is being saved appropriately • Loop through custom posts and fields on a page Best Practices/Example
  • 15. You do ● Programmatically add 3 custom post types to your own personal sites ● Programmatically add 3 custom fields to your own personal sites
  • 16. Resources Post Type ● https://codex.wordpress.org/Post_Types ● http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/ Fields ● https://codex.wordpress.org/Custom_Fields ● http://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/ ● https://generatewp.com/

Editor's Notes

  1. Custom post types Custom Fields Preps them with show content to review tonight before tomorrow’s design kickoff
  2. Custom post types Custom Fields Preps them with show content to review tonight before tomorrow’s design kickoff
  3. Custom post types Custom Fields Preps them with show content to review tonight before tomorrow’s design kickoff
  4. Your agenda should reflect your learning progression.
  5. Custom post types Custom Fields Preps them with show content to review tonight before tomorrow’s design kickoff
  6. Walk through how custom post-types were effectively used in a client site This section is all about showing participants how you use this skill set.
  7. Walk through how custom post-types were effectively used in a client site This section is all about showing participants how you use this skill set.
  8. we us labels, heiearchical, title, editor author, and thumbnail Debugging functions
  9. The $labels and $args arrays in the custom post type example above can easily be generated from https://generatewp.com/post-type/. It is much easier to copy and paste the code from that website than to write all of it out. All of these arguments, though important do not need to be explained. Focus on the main ones such as name, singular_name, menu_name, name_admin_bar, label, and description Also explain how to use menu_icon. Website below lists plenty of icons that can be used in wordpress. https://developer.wordpress.org/resource/dashicons/#media-interactive https://codex.wordpress.org/Function_Reference/register_post_type
  10. Make sure to do an example here that everyone can follow along with Remember to pause at various points to make sure everyone's on the same page At the end, ask if everyone's ready to try this solo, if not answer questions until they are
  11. include what each arguments in add_meta_box() mean https://codex.wordpress.org/Function_Reference/add_meta_box
  12. Explain that this function ensures the data saves when we add a new custom post type or update a custom post type in the wordpress dashboard.
  13. Make sure to do an example here that everyone can follow along with Remember to pause at various points to make sure everyone's on the same page At the end, ask if everyone's ready to try this solo, if not answer questions until they are
  14. Find another example of similar difficulty to the one you all did together. Make sure you’re clear with the expected outcome. You can specify features you want to see, or a test that you’ll ask them to pass Specify how much time they’ll have and if this will be a solo or group activity