WordPress is for more than just blogging. Create and manage more types of content, like a portfolio, events, testimonials, images, people, cats anything you can think of you’d like to have a website about. Learn how to add content types like they were built in.
This document discusses custom post types in WordPress. It explains that custom post types extend WordPress beyond just posts and pages by allowing additional content types like events, listings, portfolios, etc. It provides an example of setting up a custom post type for a portfolio with code snippets. It also covers adding taxonomies, templates, and queries for custom post types. Resources for learning more about custom post types in WordPress are listed at the end.
Using Custom Post Types and Advanced Custom Fields with ElementorAngela Bowman
Get links via Google Slides here: https://docs.google.com/presentation/d/1-UWzXnAbXlYfx647SLYoPyOfb6TRgzWJZZxLGgKI5e4/edit?usp=sharing
------------
Elementor Pro is required to create single post and archive templates.
What is a custom post type and custom taxonomy?
Why use CPT UI plugin?
What are custom fields?
How do you create custom fields?
What is a Theme Builder template?
How is a Theme Builder template different than editing a single page with Elementor?
What are the Display Conditions for Elementor templates?
What is a loop? Why do you need custom loops? Where do you use loops?
When you do you need to use conditional visibility?
This document provides instructions on using JavaScript to allow website visitors to select different cascading style sheets (CSS) and have their preference remembered via cookies. It discusses linking different types of style sheets, detecting browsers and objects, creating and reading cookies, and programming functions to get the current active style sheet and toggle between them when pages load and unload. Code snippets are provided to implement these functions to enable style sheet selection and remember the user's preference on future page visits.
This is the presentation slide used in my recent workshop around "Building Frontend Webapps" - Basics.
Original slides - https://lnkd.in/guFG57x
Detailed self help steps from start to end can be found here - https://lnkd.in/gvZc6MH
#frontend #learning #education #elearning
Tonight we shared a simple way to edit your CSS using the Jetpack Custom CSS module.
For those who were unable to make tonight's Meetup or would like to follow along again with the presentation, here is the material we covered as well as a few exercises to try.
To download the resources used in this example, as well as tips for setting up your own local development server, you can find more information here:
http://www.meetup.com/Pittsburgh-WordPress-Developers-Designers/pages/Into_to_CSS_Files_and_Resources/
This document discusses custom post types in WordPress. It explains that custom post types extend WordPress beyond just posts and pages by allowing additional content types like events, listings, portfolios, etc. It provides an example of setting up a custom post type for a portfolio with code snippets. It also covers adding taxonomies, templates, and queries for custom post types. Resources for learning more about custom post types in WordPress are listed at the end.
Using Custom Post Types and Advanced Custom Fields with ElementorAngela Bowman
Get links via Google Slides here: https://docs.google.com/presentation/d/1-UWzXnAbXlYfx647SLYoPyOfb6TRgzWJZZxLGgKI5e4/edit?usp=sharing
------------
Elementor Pro is required to create single post and archive templates.
What is a custom post type and custom taxonomy?
Why use CPT UI plugin?
What are custom fields?
How do you create custom fields?
What is a Theme Builder template?
How is a Theme Builder template different than editing a single page with Elementor?
What are the Display Conditions for Elementor templates?
What is a loop? Why do you need custom loops? Where do you use loops?
When you do you need to use conditional visibility?
This document provides instructions on using JavaScript to allow website visitors to select different cascading style sheets (CSS) and have their preference remembered via cookies. It discusses linking different types of style sheets, detecting browsers and objects, creating and reading cookies, and programming functions to get the current active style sheet and toggle between them when pages load and unload. Code snippets are provided to implement these functions to enable style sheet selection and remember the user's preference on future page visits.
This is the presentation slide used in my recent workshop around "Building Frontend Webapps" - Basics.
Original slides - https://lnkd.in/guFG57x
Detailed self help steps from start to end can be found here - https://lnkd.in/gvZc6MH
#frontend #learning #education #elearning
Tonight we shared a simple way to edit your CSS using the Jetpack Custom CSS module.
For those who were unable to make tonight's Meetup or would like to follow along again with the presentation, here is the material we covered as well as a few exercises to try.
To download the resources used in this example, as well as tips for setting up your own local development server, you can find more information here:
http://www.meetup.com/Pittsburgh-WordPress-Developers-Designers/pages/Into_to_CSS_Files_and_Resources/
This document discusses custom post types and taxonomies in WordPress. It explains that custom post types allow adding different content types beyond standard posts and pages. Taxonomies allow categorizing and tagging custom content. Plugins can easily create these, or they can be coded manually. Templates and queries must also be customized to display and retrieve custom content types and taxonomies. Custom fields further extend content by adding specific metadata.
Emerald Coast WordPress Meetup presentation slides.
Firestorm Creative Studios explains how using custom post types in WordPress can help you better organize and structure your content and by using a simple plugin, you can also for relationships between post types. When creating content assets on your website, be sure that you offer the best user experience possible so that your content marketing efforts get the maximum benefit. Better and more logical content organization also allows search engines to better interpret what your content pages are about and reward you with better search relevance and rankings.
www.Firestormcs.com
Creatively creating custom post types! word sesh2techvoltz
This document discusses custom post types in WordPress. It begins by introducing custom post types and provides examples like a portfolio or online store. It then explains how to create a custom post type plugin file and register a post type called "WordSesh" with arguments like labels and supports. The document goes on to discuss adding custom fields with meta boxes, user roles and capabilities, templates, and taxonomies to further organize custom post types. Resources for learning more are provided at the end.
Custom content types & custom taxonomies in wordpressstimasoft
This document discusses custom content types and taxonomies in WordPress. It explains that custom post types allow creating different types of repeating content beyond standard posts and pages. Custom taxonomies help organize custom post types. The document provides an example website with custom post types for themes, testimonials, and team members. It demonstrates how to register these custom post types and a taxonomy for themes using code. The document also discusses displaying and styling custom post types differently from standard posts.
K. Adam White gave a presentation on custom post types in WordPress. He explained that custom post types allow users to create their own content types beyond standard posts and pages. He demonstrated how to register a custom post type using code and discussed using plugins to simplify the process. White also covered displaying and querying custom post types, potential advantages and disadvantages, and common issues to watch out for like naming conflicts.
WordPress uses template files, template tags, and CSS stylesheets to generate sites. Template files contain the building blocks like headers and footers. Template tags provide instructions and request information from the database. CSS stylesheets style the templates using classes. Common classes include those for image alignment, captions, menus, widgets, and more. PHP is used to query and display content through the loop and template tags.
The document provides an overview of the WordPress publishing process and interface for authors. It explains that authors create content, submit it for review, and editors can request revisions before publishing. It then outlines the WordPress dashboard and common areas like posts, media, and various formatting tools available to authors. Specific examples are given for tasks like starting a post and saving as a draft, adding headings, links, block quotes, images, and other formatting.
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
WP Dev/tools for beginners: ftp, git, svn, php, html, css, sass, js, jquery, IDEs, themes, child themes, the loop, hooks, APIs, CLI, agile, bootstrap, SEO, slack… etc.
We’ll discuss the language and various acronyms and buzzwords used by devs in this crash course introduction to the developer’s world. Overview of primary development processes and terms and what software is needed to play the game. We’ll cover what you need to go from zero to developer and hopefully how to have fun on the way.
Go over a quick crash course into what it takes to develop a WordPress theme and then jump into some deeper waters on how to utilize Custom Post Types, create custom theme options, and custom meta boxes.
Stepping into theme development can be daunting. Sure anyone with a little PHP skill and a basic understanding of the loop can create theme templates, but there are a number of things you can learn which can take your theme development to the next level. We’ll discuss the skills that can take you from a beginner theme developer to a master.
Stepping into theme development can be daunting. Sure anyone with a little PHP skill and a basic understanding of the loop can create theme templates, but there are a number of things you can learn which can take your theme development to the next level. We’ll discuss the skills that can take you from a beginner theme developer to a master.
A video of this talk given in Boston, MA can be seen at https://www.youtube.com/watch?v=IdMEOO0JmZA
(Updated for 2017)
Word press interview question and answer tops technologiesTOPS Technologies
Dehradun Office
96/2 Haridwar Road,
(in front of LIC office),
Dharampur,
Dehradun,
Uttarakhand.
http://www.tops-int.com/live-project-training-php.html
Most experienced IT Training Institute in Dehradun known for providing PHP course as per Industry Standards and Requirement.
This document discusses how to create dynamic subject guides for an academic library using WordPress custom post types. It describes how the library at Lincoln Memorial University decided to move from static web pages to WordPress to create more dynamic and customizable subject guides. It provides step-by-step instructions for setting up custom post types, categories, and tags for subject guides in WordPress, including screenshots. This allows librarians to easily add and edit subject guide content and have it automatically organized and displayed based on the defined hierarchy.
Have you ever used a theme or a plugin that offers an additional content area outside of the standard Posts or Pages? These are called Custom Post Types, a great feature in WordPress that allows you to break out into specific areas of content that can be used for anything the mind can imagine.
Whether you are learning about theme development and want to add separate content sections of your own or simply new to using WordPress to manage your content, it is to your advantage to know and understand what custom post types are, and what they can do to simplify your publishing or development life.
This presentation was given at WordCamp Ottawa on April 27th, 2013
WordPress is a free, open-source content management system (CMS) that can be used to build blogs or full-fledged websites. It exists in two versions: WordPress.org, which allows fully customizing and hosting a site yourself, and WordPress.com, which provides free hosted blogs with limited customization options. WordPress themes control the visual design and layout of a site, and can be switched out independently of the content. This separation of content and presentation makes WordPress very flexible and powerful.
1. Custom post types allow users to create different content types like recipes, videos, or events within WordPress rather than just blog posts. 2. They provide more flexibility than plugins and make WordPress more of a true CMS. 3. The code to create a custom post type for recipes was demonstrated, including arguments like labels, supports, and hierarchical settings.
I gave a brief overview of the new Custom Post Types in WordPress 3. I talked about how we can use them and did a demo of creating our 1st Custom Pots Type plugin. The plugin can be downloaded from http://www.tripleginteractive.com/blog/wordpress/wordcamp-columbus-custom-post-types/
With the recent releases of Gutenberg and Full-Site Editing WordPress is changing to the core to be block-centric. There are a lot of newer concepts regarding blocks that can be overwhelming to new users or even developers as well as long-time pros who are not yet used to these changes. Let’s review from a high level with some content and code examples for how to deal with blocks. We have core blocks, custom blocks, dynamic blocks, reusable blocks, block patterns, block variations, block styles, block templates, block-based themes… etc. From a high level we can see blocks are taking over, let’s dig a bit together to see what it all means and follow the WordPress block evolution thus far.
See notes and examples at: https://github.com/circlecube/evans-block-theme
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...Evan Mullins
This document summarizes some workflows and processes used by a development team for WordPress projects, including version control with Git, environment-aware configuration files, database migrations, and automated deployments. It discusses setting up local development environments, managing code standards and reviews, and deploying code from development to multiple environments.
Contenu connexe
Similaire à Custom post types- Choose Your Own Adventure - WordCamp Atlanta 2014 - Evan Mullins
This document discusses custom post types and taxonomies in WordPress. It explains that custom post types allow adding different content types beyond standard posts and pages. Taxonomies allow categorizing and tagging custom content. Plugins can easily create these, or they can be coded manually. Templates and queries must also be customized to display and retrieve custom content types and taxonomies. Custom fields further extend content by adding specific metadata.
Emerald Coast WordPress Meetup presentation slides.
Firestorm Creative Studios explains how using custom post types in WordPress can help you better organize and structure your content and by using a simple plugin, you can also for relationships between post types. When creating content assets on your website, be sure that you offer the best user experience possible so that your content marketing efforts get the maximum benefit. Better and more logical content organization also allows search engines to better interpret what your content pages are about and reward you with better search relevance and rankings.
www.Firestormcs.com
Creatively creating custom post types! word sesh2techvoltz
This document discusses custom post types in WordPress. It begins by introducing custom post types and provides examples like a portfolio or online store. It then explains how to create a custom post type plugin file and register a post type called "WordSesh" with arguments like labels and supports. The document goes on to discuss adding custom fields with meta boxes, user roles and capabilities, templates, and taxonomies to further organize custom post types. Resources for learning more are provided at the end.
Custom content types & custom taxonomies in wordpressstimasoft
This document discusses custom content types and taxonomies in WordPress. It explains that custom post types allow creating different types of repeating content beyond standard posts and pages. Custom taxonomies help organize custom post types. The document provides an example website with custom post types for themes, testimonials, and team members. It demonstrates how to register these custom post types and a taxonomy for themes using code. The document also discusses displaying and styling custom post types differently from standard posts.
K. Adam White gave a presentation on custom post types in WordPress. He explained that custom post types allow users to create their own content types beyond standard posts and pages. He demonstrated how to register a custom post type using code and discussed using plugins to simplify the process. White also covered displaying and querying custom post types, potential advantages and disadvantages, and common issues to watch out for like naming conflicts.
WordPress uses template files, template tags, and CSS stylesheets to generate sites. Template files contain the building blocks like headers and footers. Template tags provide instructions and request information from the database. CSS stylesheets style the templates using classes. Common classes include those for image alignment, captions, menus, widgets, and more. PHP is used to query and display content through the loop and template tags.
The document provides an overview of the WordPress publishing process and interface for authors. It explains that authors create content, submit it for review, and editors can request revisions before publishing. It then outlines the WordPress dashboard and common areas like posts, media, and various formatting tools available to authors. Specific examples are given for tasks like starting a post and saving as a draft, adding headings, links, block quotes, images, and other formatting.
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
WP Dev/tools for beginners: ftp, git, svn, php, html, css, sass, js, jquery, IDEs, themes, child themes, the loop, hooks, APIs, CLI, agile, bootstrap, SEO, slack… etc.
We’ll discuss the language and various acronyms and buzzwords used by devs in this crash course introduction to the developer’s world. Overview of primary development processes and terms and what software is needed to play the game. We’ll cover what you need to go from zero to developer and hopefully how to have fun on the way.
Go over a quick crash course into what it takes to develop a WordPress theme and then jump into some deeper waters on how to utilize Custom Post Types, create custom theme options, and custom meta boxes.
Stepping into theme development can be daunting. Sure anyone with a little PHP skill and a basic understanding of the loop can create theme templates, but there are a number of things you can learn which can take your theme development to the next level. We’ll discuss the skills that can take you from a beginner theme developer to a master.
Stepping into theme development can be daunting. Sure anyone with a little PHP skill and a basic understanding of the loop can create theme templates, but there are a number of things you can learn which can take your theme development to the next level. We’ll discuss the skills that can take you from a beginner theme developer to a master.
A video of this talk given in Boston, MA can be seen at https://www.youtube.com/watch?v=IdMEOO0JmZA
(Updated for 2017)
Word press interview question and answer tops technologiesTOPS Technologies
Dehradun Office
96/2 Haridwar Road,
(in front of LIC office),
Dharampur,
Dehradun,
Uttarakhand.
http://www.tops-int.com/live-project-training-php.html
Most experienced IT Training Institute in Dehradun known for providing PHP course as per Industry Standards and Requirement.
This document discusses how to create dynamic subject guides for an academic library using WordPress custom post types. It describes how the library at Lincoln Memorial University decided to move from static web pages to WordPress to create more dynamic and customizable subject guides. It provides step-by-step instructions for setting up custom post types, categories, and tags for subject guides in WordPress, including screenshots. This allows librarians to easily add and edit subject guide content and have it automatically organized and displayed based on the defined hierarchy.
Have you ever used a theme or a plugin that offers an additional content area outside of the standard Posts or Pages? These are called Custom Post Types, a great feature in WordPress that allows you to break out into specific areas of content that can be used for anything the mind can imagine.
Whether you are learning about theme development and want to add separate content sections of your own or simply new to using WordPress to manage your content, it is to your advantage to know and understand what custom post types are, and what they can do to simplify your publishing or development life.
This presentation was given at WordCamp Ottawa on April 27th, 2013
WordPress is a free, open-source content management system (CMS) that can be used to build blogs or full-fledged websites. It exists in two versions: WordPress.org, which allows fully customizing and hosting a site yourself, and WordPress.com, which provides free hosted blogs with limited customization options. WordPress themes control the visual design and layout of a site, and can be switched out independently of the content. This separation of content and presentation makes WordPress very flexible and powerful.
1. Custom post types allow users to create different content types like recipes, videos, or events within WordPress rather than just blog posts. 2. They provide more flexibility than plugins and make WordPress more of a true CMS. 3. The code to create a custom post type for recipes was demonstrated, including arguments like labels, supports, and hierarchical settings.
I gave a brief overview of the new Custom Post Types in WordPress 3. I talked about how we can use them and did a demo of creating our 1st Custom Pots Type plugin. The plugin can be downloaded from http://www.tripleginteractive.com/blog/wordpress/wordcamp-columbus-custom-post-types/
Similaire à Custom post types- Choose Your Own Adventure - WordCamp Atlanta 2014 - Evan Mullins (20)
With the recent releases of Gutenberg and Full-Site Editing WordPress is changing to the core to be block-centric. There are a lot of newer concepts regarding blocks that can be overwhelming to new users or even developers as well as long-time pros who are not yet used to these changes. Let’s review from a high level with some content and code examples for how to deal with blocks. We have core blocks, custom blocks, dynamic blocks, reusable blocks, block patterns, block variations, block styles, block templates, block-based themes… etc. From a high level we can see blocks are taking over, let’s dig a bit together to see what it all means and follow the WordPress block evolution thus far.
See notes and examples at: https://github.com/circlecube/evans-block-theme
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...Evan Mullins
This document summarizes some workflows and processes used by a development team for WordPress projects, including version control with Git, environment-aware configuration files, database migrations, and automated deployments. It discusses setting up local development environments, managing code standards and reviews, and deploying code from development to multiple environments.
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentEvan Mullins
Crash course introduction to web development for WordPress covering acronyms, buzzwords and concepts that often leave outsiders mystified. Overview of primary development processes and what software and tools are needed to play the game. We’ll cover what you need to go from zero to developer and hopefully how to have fun on the way. WordPress development tools explained for beginners: ftp, git, svn, php, html, css, sass, js, jquery, IDEs, themes, child themes, the Loop, hooks, APIs, CLI, agile, bootstrap, slack, linting, sniffing … etc.
Meetup: The big change coming to WordPress in 2018 - GutenbergEvan Mullins
Sometime this year, possibly as soon as April, WordPress will be releasing a huge update to their main page/post editing tool called "Gutenberg". While this will have a major impact on how users interact with WordPress, it will also greatly impact how sites are built in the future.
The document provides an overview of the WordPress REST API. It begins by defining what an API is and explaining that the WordPress REST API exposes WordPress data through HTTP requests that return JSON responses. It discusses how the API makes WordPress more flexible and extensible by allowing developers to build applications that interact with WordPress sites. The document then covers some key aspects of the WordPress REST API like routes, endpoints, authentication, and examples of how it is being used.
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!Evan Mullins
WP Dev/tools for beginners: ftp, git, svn, php, html, css, sass, js, jquery, IDEs, themes, child themes, the loop, inspect element, hooks, APIs, CLI, agile, bootstrap, SEO, slack… etc.
We’ll discuss the language and various acronyms and buzzwords used by devs in this crash course introduction to the developer’s world. Overview of primary development processes and terms and what software is needed to play the game. We’ll cover what you need to go from zero to developer and hopefully how to have fun on the way.
Takeaways:
Learn to speak dev
Get familiar with concepts (and acronyms) you’ll need to dev
Learn about tools that will help you
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!Evan Mullins
The WordPress REST API allows developers to access WordPress content and data through a RESTful web API. It provides endpoints to retrieve data in JSON format for posts, pages, media, custom post types, users and more. The REST API is being merged into the WordPress core in version 4.7, making it an official part of WordPress and allowing developers to build applications and plugins that interact with WordPress sites through the API. The REST API makes WordPress more of an application framework and allows content and data to be accessed from any system that can make HTTP requests to the API endpoints.
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!Evan Mullins
See the Power of the WP API. Now that every WordPress website has (or will have) an API built-in, what can you do with it? It allows us to further separate the data from the code. Use WordPress to manage our data and then via the API easily access or update that data to power whatever we like. We’ll touch how to set it up and a handful of examples and then explore an iOS app pulling all it’s data and assets from a WordPress site via this API.
This will be geared for developers with some “how to” but also for everyone interested in the power of WordPress and where things are heading.
Learn how to spell WP-API
Learn about the power and flexibility it brings to WordPress
See it working in a live app
Modifying your themes design - Learning CSS - Atlanta WordPress users groupEvan Mullins
The presentation overviews the internet, teaches us how to spell HTML and other web programming "languages" that come together to form a WordPress website, like HTML, CSS & PHP. We even discussed web development tools like FTP clients and which text editors to use. We went over what makes up a wordpress theme and then the concept of child themes. Discussed the process of creating your own child theme with just a couple files and that you can create a child theme for any theme out there. We demoed how to view source and dissect any website, but more importantly, how to inspect elements on your site and live-edit the css for any element. Then to write these CSS rules to our theme to lock in the edits in your child theme.
Firstborn child theme word camp presentation - atlanta 2013Evan Mullins
Learn how to mod themes the right way. Using child themes you won’t loose your edits when there’s a theme update. (101) We’ll go over the advantages and how to set up a child theme. (102) Plus we’ll cover some tricks to make the process a bit easier.
We'll cover how to get from photoshop to WordPress. There are many different roads to a theme. We'll go over a few possibilities and then cover getting from a design in photoshop to an actual WordPress child theme while trying not to reinvent the wheel. (Assuming strong familiarity of html and css and basic familiarity with WordPress itself)
Notes at: http://circlecube.com/2012/02/wordcamp-presentation-slides-from-photoshop-psd-to-wordpress-theme/
Procrastination is a common challenge that many individuals face when it comes to completing tasks and achieving goals. It can hinder productivity and lead to feelings of stress and frustration.
However, with the right strategies and mindset, it is possible to overcome procrastination and increase productivity.
In this article, we will explore the causes of procrastination, how to recognize the signs of procrastination in oneself, and effective strategies for overcoming procrastination and boosting productivity.
ProSocial Behaviour - Applied Social Psychology - Psychology SuperNotesPsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Aggression - Applied Social Psychology - Psychology SuperNotesPsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Understanding of Self - Applied Social Psychology - Psychology SuperNotesPsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
As we navigate through the ebbs and flows of life, it is natural to experience moments of low motivation and dwindling passion for our goals.
However, it is important to remember that this is a common hurdle that can be overcome with the right strategies in place.
In this guide, we will explore ways to rekindle the fire within you and stay motivated towards your aspirations.
You may be stressed about revealing your cancer diagnosis to your child or children.
Children love stories and these often provide parents with a means of broaching tricky subjects and so the ‘The Secret Warrior’ book was especially written for CANSA TLC, by creative writer and social worker, Sally Ann Carter.
Find out more:
https://cansa.org.za/resources-to-help-share-a-parent-or-loved-ones-cancer-diagnosis-with-a-child/
The Secret Warrior - Help Share a Parent or Loved Ones’ Cancer Diagnosis with...
Custom post types- Choose Your Own Adventure - WordCamp Atlanta 2014 - Evan Mullins
1. Custom Post Types
Choose Your Own Adventure
WordCamp Atlanta 15 March 2014
Evan Mullins @circlecube
WordPress is for more than just blogging. Create and manage more types
of content, like a portfolio, events, testimonials, images, people, cats
anything you can think of you’d like to have a website about. Learn how
to add content types like they were built in.
2. Who am I?
I’ve been using WordPress since late 2005, that’s WP 2.0! First I knew WordPress as a
blogger, then as designer, then front-end coder and since as a theme and plug-in
developer. I’m the Interactive Director at Brand Fever, an Atlanta-based brand &
marketing agency, where I get a kick out of developing sites in WordPress every day! I
see WordPress as a flexible, user-friendly option that is nearly always the best tool for the
job. I most enjoy playing with custom fields and custom post types to create simple CMS
solutions to complex problems and making them responsive & interactive. When not
programming, I’m likely busy as a soccer coach, boy scout leader or playing with my
family: My awesome wife & our 3 boys (daughter on the way) and our lab-hound mutt. I
like pizza and chocolate.
Evan Mullins
circlecube.com
4. Introducing: Post Types
WordPress can hold and display many different types of
content. A single item of such a content is generally called
a post, although post is also a specific post type.
Internally, all the post types are stored in the same place,
in the wp_posts database table, but are differentiated by a
column called post_type.
WordPress 3.0 gives you the capability to add your own
custom post types and to use them in different ways.
5. Posts
Posts in WordPress refer to the blog content.
Each blog post is a “post”. But all other content
is also a post. I try to distinguish by always
calling blog posts, “blog posts” or “Posts” and
using the term “post” as a more abstract term.
6. Pages
WordPress pages are not
time based like blog posts
but would be best located in
your main navigation.
Things like your “about”
page or your “contact”
page. Pages are posts of
post_type page.
Pages can select templates
to be used so you can
customize the layout and
you can customize the
content using custom fields.
9. Introducing:
Custom Post Types
Custom post types are new post types you
can create. A custom post type can be added
to WordPress via the register_post_type()
function. This function allows you to define a
new post type by its labels, supported
features, availability and other specifics.
http://codex.wordpress.org/Post_Types#Custom_Post_Types
10. What are they used for?
Products
Portfolio Works
Events
Testimonials
Press Releases
Movies
Books
Stars
Golf Courses
Cars
Songs
Recipes
Blocks
People
Cats
Games
etc...
14. CPT
Custom post types for different types of data or
content that you’d manage in a website.
(Queue Devil’s Advocate)
But, we have that already right?
Categories, tags, post formats …
Posts, pages ...
16. Taxonomies
Taxonomy is a way to
group things together.
Built in taxonomies
are categories and
tags. But we can
create custom
taxonomies as well!
http://codex.wordpress.org/Taxonomies
17. Taxonomy ≠ CPT
If you just want to
organize or categorize
your content, a CPT is
not the answer. Use a
taxonomy.
18. Post Formats
A Post Format is a
formatting designation
made to a post. A
piece of meta
information that can
be used by a theme to
customize the
presentation (or
format) of a post.
The Post Formats
feature provides a
standardized list of
formats that are
available to all themes
that support the
feature.
http://codex.wordpress.org/Post_Formats
http://markjaquith.wordpress.com/2010/11/12/post-formats-vs-custom-post-types/
19. Post Formats ≠ CPT
If your aim is to just
display blog content
but display each ‘type’
of blog post differently,
you might rather use
Post Formats.
21. (Blog) Posts
Post in WordPress is
a post type that is
typical for and most
used by blogs. Posts
are normally displayed
in a blog in reverse
chronological order.
Posts are also used
for creating the feeds.
Posts usually have
comments enabled
and contain a title and
body text. They can
be organized via
taxonomy and
formatted via Post
Formats.
22. Posts ≠ posts (CPT)
Blog posts belong to
the blog section of
your site. If you need
any other type of
content. You have to
create it via CPT.
23. Pages ≠ CPT
I hope this one is obvious.
Pages in WordPress are posts, but not part of the blog
posts or Posts. Pages can use different page templates
to display them. Pages can also be organized in a
hierarchical structure, with pages being parents to
other pages, but they normally cannot be assigned
categories and tags.
24. Choose Your Own
CPT come with many options/arguments:
label(s), description, public, exclude_from_search,
publicly_queryable, show_ui, show_in_nav_menu,
show_in_menu, show_in_admin_bar, menu_position,
capability_type, capabilities, map_meta_cap, hierarchical,
supports, register_meta_box_cb, taxonomies, has_archive,
permalink_epmask, rewrite, query_var, can_export.
28. Hooks
Hooks are provided by WordPress to allow you to 'hook
into' the rest of WordPress. That is, your functions hook
into WordPress functions. Then when the WordPress
functions are called at any time, it sets your code in motion.
29. Hooks
actions
Actions are the hooks that the WordPress
core launches at specific points during
execution, or when specific events occur.
Your plugin can specify that one or more of its
PHP functions are executed at these points,
using the Action API.
filters
Filters are the hooks that WordPress
launches to modify text of various types
before adding it to the database or sending
it to the browser screen. Your plugin can
specify that one or more of its PHP
functions is executed to modify specific
types of text at these times, using the Filter
API.
30. How to Create CPT: 2 of 3
Use a tool to write the
code for you.
39. Now What?
You’ve decided what post types you want.
You’ve decided how to add them.
Add your recipe post type.
Add all your favorite recipes as content.
Most likely though, your custom post type
needs custom content, no? A recipe has
different data than the default title + body.
40. And Then?
How to customize content for the custom post
type?
How to display customized content for the
custom post type?
41. Custom Fields
Again 3 ways:
1. Write your own.
2. Use a tool to help you write it.
3. Use a plugin.
42. Custom Fields: 1 of 3
Roll your own.
Use the built-in
custom fields to
add these values
to your content.
44. Custom Fields: 1 of 3
<?php the_meta(); ?>
<?php $key="mykey"; echo get_post_meta($post->ID, $key, true); ?>
Then, set up your
template files for this
custom post type to
display the fields.
45. Theme Template Hierarchy
Which template file(s) will WordPress use
when it displays a certain type of page?
The huge logic tree (diagram) that helps
WordPress decide which template to show
for every type of content. It shows the
defaults and fallbacks, notice how everything
defaults back to index as a fallback if that
specific type of content does not have a
template.
47. Template Files for CPTs
single-$posttype.php
single-recipe.php will
be used instead of the
default single.php file
for this CPT.
archive-$posttype.php
archive-recipe.php will
be used instead of the
default archive.php file
for this CPT.
48. Custom Fields: 2 of 3
Use a tool/library/generator to support/write
your code.
Custom Metaboxes and Fields for WordPress
by WebDevStudios on github
any other shout outs?
51. Custom Fields: 3 of 3
Use a plugin. I recommend my all-time favorite
plugin EVER:
Advanced Custom Fields by mate Elliot
Condon
any other shout outs?