How to Create Custom Post Type in WordPress - PowerPoint PPT Presentation

View by Category
About This Presentation
Title:

How to Create Custom Post Type in WordPress

Description:

Easy guide about creating Custom post type in WordPress, Follow this guide to successfully configure it: – PowerPoint PPT presentation

Number of Views:5
Slides: 8
Provided by: marvenniffi
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: How to Create Custom Post Type in WordPress


1
How to Create Custom Post Type in WordPress
2
What is a WordPress Custom Post Type?
  • In accordance to the WordPress Codex, Custom
    Post Types also known as Custom Content Types
    are the specific type of post types that can be
    added to your WordPress using a simple function
    called the register_post_type(). The function
    allows you to add the new custom post type in
    accordance to a number of specifics such as
    supported features, availability, and labels.
  • Other than that, one can find several post type
    that is available by default in WordPress
    installation.

3
Create a WordPress Custom Post Type
  • To create a custom post type for any particular
    theme on WordPress, navigate to function.php file
    from your WordPress theme directory then add the
    following code to it.

4
After Adding The Above Code
  • You will have the new post type automatically
    appear in the admin area of your WordPress.

5
Necessary to Use init for The hook
  • When you create a custom post types, it is
    necessary to use init for the hook in
    add_action(). The register_post_type() function
    takes the arguments.

6
Post Specification
  • supports Specifies the post type is compatible
    and supports all essential features.
  • labels Specifies that the post type is referred
    properly to the admin area.
  • args Specifies a permalink slug of the news,
    and a menu position located just beneath the
    Posts menu.

7
Find the Original Source for More
  • Original Source https//www.cloudways.com/blog/ho
    w-to-create-custom-post-types-in-wordpress/
  • Hope, It will help you to Create WordPress Custom
    Post Type.
About PowerShow.com