SlideShare a Scribd company logo
CUSTOM POST TYPE IN
WORDPRESS
By:
Junejo Naeem Ahmed
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.
DEFAULT POST TYPES
• There are five post types that are readily available to
users or internally used by the WordPress installation
by default :
–
–
–
–
–

Post
Page
Attachment
Revision
Navigation menu
WHAT ACTUALLY ARE CUSTOM POST TYPES?
• By using Custom Post Types you can create a new
type of item like Posts and Pages, which will contain
a different set of data.
• It will have a new administration menu, dedicated
editing pages, custom taxonomies and many more
utilities required for full fledged publishing.
• Custom Post Types are a new set of administrative
options appearing along with the default post types
such as Posts, Pages, Attachments etc.
WHAT ACTUALLY ARE CUSTOM POST TYPES? (cont’d)
• A Custom Post Type can store any type of
information. It has a dedicated editor, media
uploader and uses the existing WordPress table
structure for ease in data management.
• The main advantage of creating custom post types
using the WordPress API is that it equips itself well
with existing themes and templates.
• Custom Post Types are also SEO friendly because of
their nifty permalinks.
WHAT ACTUALLY ARE CUSTOM POST TYPES? (cont’d)
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.
• Note that you must call register_post_type() before
the admin_menu and after the after_setup_theme
action hooks.
• A good hook to use is the init hook.
WHAT WORDPRESS CAN DO FOR YOU NOW
• You could create custom post types for books,
movies, reviews, products and so on.
• If created correctly, you can achieve the following
with a few lines of code:
• The custom post type will show up in the back end as
a separate menu item with its own post list and “add
new” page.
• Categories and tags can be made available to the
custom post type, or you can create custom
taxonomies.
WHAT WORDPRESS CAN DO FOR YOU NOW
• Apart from these, you can modify countless options,
such as where the custom post type should be
placed in the menu, should it be searchable, which
user level can access it, should it be hierarchical,
custom rewrite rules, etc.
• Custom meta boxes enable you to add additional
boxes to the edit screen of a post. They usually use
custom fields, so you could just use custom fields as
well, but by separating out some custom fields as
meta boxes, you can create a much smoother and
usable admin.
CUSTOM TAXONOMIES
• Custom Taxonomies Your regular blog posts use categories
and tags to create an organization structure.
• However, the same organization doesn’t necessarily make
sense for custom post types.
• Your blog posts could be about your “Life,” your “Thoughts” or
your “Dreams.”
• These are obviously not appropriate for products.
CUSTOM TAXONOMIES (cont’d)

More Related Content

PDF
WordPress custom posts types for structured content
PPTX
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
PDF
WordPress Development - Custom Post Types
PDF
Using WordPress Blogs
PDF
Stepping Into Custom Post Types
PDF
The very introduction to content management systems
PPTX
Getting started with wordpress
PPTX
WordPress custom posts types for structured content
WordCamp Kent 2019 - WP 101: Custom Post Type & Custom Fields
WordPress Development - Custom Post Types
Using WordPress Blogs
Stepping Into Custom Post Types
The very introduction to content management systems
Getting started with wordpress

Viewers also liked (20)

PPTX
C.R.A.S.H
PPTX
Introduction To WordPress
PPTX
WordPress theme setting page
PPTX
The Seagull
ODP
Doc4 sm 사용자_가이드
PPTX
jQuery Mobile
PPT
개발 생산성 향상 기법 V1.2
PPTX
Wordpress theme development
ODP
MIT/CSAIL OpenStack Use Cases - Hong Kong 2014
ODP
Design Pattern 3
PPTX
Introduction databases and MYSQL
ODP
Design pattern 4
PPTX
Doc4SM 제품설명서
PDF
على قمم الجبال
PDF
Фотоотчет Великий Новгород, ООО "Империя", разрешительная документация
PPT
Orixenes do galego raúl rañó 1bach a
PPTX
Баги на босов вормиксе
PPT
La wep perfect
PDF
Actividad de aprendizaje nº 02
C.R.A.S.H
Introduction To WordPress
WordPress theme setting page
The Seagull
Doc4 sm 사용자_가이드
jQuery Mobile
개발 생산성 향상 기법 V1.2
Wordpress theme development
MIT/CSAIL OpenStack Use Cases - Hong Kong 2014
Design Pattern 3
Introduction databases and MYSQL
Design pattern 4
Doc4SM 제품설명서
على قمم الجبال
Фотоотчет Великий Новгород, ООО "Империя", разрешительная документация
Orixenes do galego raúl rañó 1bach a
Баги на босов вормиксе
La wep perfect
Actividad de aprendizaje nº 02
Ad

Similar to Wordpress custom-posttype (20)

PDF
Add Custom Post Types to Your WordPress Website
PPT
Complete manual for_teachers
PPTX
The Flexibility of WordPress
KEY
Custom Post Types in Depth at WordCamp Montreal
PPT
Newspapers with WordPress
KEY
WordPress can do that?!
PPTX
Introduction to Wordpress
PDF
How to Use Wordpress (for Writers and Bloggers)
PPTX
Custom Post Types and Taxonomies
KEY
WordPress 3 Custom Post Types
PDF
Chapter 6 the django admin site
PPTX
Webiny CMS Starter Guide
PDF
WordPress Custom Post Types
PPTX
Word press training
PDF
WordPress A CMS for Beginners, Geeks and Those In-Between
PDF
WordPress Custom Post Types
PPTX
Basic wordpress editing
PPTX
9 Essential Wordpress Plugins for a Professional Wordpress Blog
PPT
Guide to using wordpress
PDF
Workshop: Creating your first WordPress plugin
Add Custom Post Types to Your WordPress Website
Complete manual for_teachers
The Flexibility of WordPress
Custom Post Types in Depth at WordCamp Montreal
Newspapers with WordPress
WordPress can do that?!
Introduction to Wordpress
How to Use Wordpress (for Writers and Bloggers)
Custom Post Types and Taxonomies
WordPress 3 Custom Post Types
Chapter 6 the django admin site
Webiny CMS Starter Guide
WordPress Custom Post Types
Word press training
WordPress A CMS for Beginners, Geeks and Those In-Between
WordPress Custom Post Types
Basic wordpress editing
9 Essential Wordpress Plugins for a Professional Wordpress Blog
Guide to using wordpress
Workshop: Creating your first WordPress plugin
Ad

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Types and Its function , kingdom of life
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
01-Introduction-to-Information-Management.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Supply Chain Operations Speaking Notes -ICLT Program
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
01-Introduction-to-Information-Management.pdf
Sports Quiz easy sports quiz sports quiz
TR - Agricultural Crops Production NC III.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Microbial diseases, their pathogenesis and prophylaxis

Wordpress custom-posttype

  • 1. CUSTOM POST TYPE IN WORDPRESS By: Junejo Naeem Ahmed
  • 2. 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.
  • 3. DEFAULT POST TYPES • There are five post types that are readily available to users or internally used by the WordPress installation by default : – – – – – Post Page Attachment Revision Navigation menu
  • 4. WHAT ACTUALLY ARE CUSTOM POST TYPES? • By using Custom Post Types you can create a new type of item like Posts and Pages, which will contain a different set of data. • It will have a new administration menu, dedicated editing pages, custom taxonomies and many more utilities required for full fledged publishing. • Custom Post Types are a new set of administrative options appearing along with the default post types such as Posts, Pages, Attachments etc.
  • 5. WHAT ACTUALLY ARE CUSTOM POST TYPES? (cont’d) • A Custom Post Type can store any type of information. It has a dedicated editor, media uploader and uses the existing WordPress table structure for ease in data management. • The main advantage of creating custom post types using the WordPress API is that it equips itself well with existing themes and templates. • Custom Post Types are also SEO friendly because of their nifty permalinks.
  • 6. WHAT ACTUALLY ARE CUSTOM POST TYPES? (cont’d)
  • 7. 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. • Note that you must call register_post_type() before the admin_menu and after the after_setup_theme action hooks. • A good hook to use is the init hook.
  • 8. WHAT WORDPRESS CAN DO FOR YOU NOW • You could create custom post types for books, movies, reviews, products and so on. • If created correctly, you can achieve the following with a few lines of code: • The custom post type will show up in the back end as a separate menu item with its own post list and “add new” page. • Categories and tags can be made available to the custom post type, or you can create custom taxonomies.
  • 9. WHAT WORDPRESS CAN DO FOR YOU NOW • Apart from these, you can modify countless options, such as where the custom post type should be placed in the menu, should it be searchable, which user level can access it, should it be hierarchical, custom rewrite rules, etc. • Custom meta boxes enable you to add additional boxes to the edit screen of a post. They usually use custom fields, so you could just use custom fields as well, but by separating out some custom fields as meta boxes, you can create a much smoother and usable admin.
  • 10. CUSTOM TAXONOMIES • Custom Taxonomies Your regular blog posts use categories and tags to create an organization structure. • However, the same organization doesn’t necessarily make sense for custom post types. • Your blog posts could be about your “Life,” your “Thoughts” or your “Dreams.” • These are obviously not appropriate for products.