1 / 7

How to Create Custom Post Type in WordPress

Easy guide about creating Custom post type in WordPress, Follow this guide to successfully configure it: https://www.cloudways.com/blog/how-to-create-custom-post-types-in-wordpress/<br><br>

Marvenniffi
Download Presentation

How to Create Custom Post Type in WordPress

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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/how-to-create-custom-post-types-in-wordpress/ • Hope, It will help you to Create WordPress Custom Post Type.

More Related