How to Add a Custom Post Type to Divi with Code

Опубликовано: 23 Октябрь 2024
на канале: Divi Engine
7,674
103

In this Divi tutorial, we are going to walk you through adding a custom post type to a Divi install without using any plugins. Don't worry, no need to be a code ninja for this, we will be using a handy custom post type generator to do the heavy lifting. We even show you how to build a template for this new Custom Post Type using the Divi Theme Builder.

With our new Divi Custom Post Type in place, we will then talk about 2 ways you can display the new Custom Post Type on the frontend of your Divi site.

LINKS
Text Tutorial ➤ https://diviengine.com/how-to-add-a-c...
➤ Metabox Custom Post Type Generator @ https://metabox.io/post-type-generator/
➤ Divi Child Theme Download @ https://diviengine.com/set-divi-child...
➤ Learn more about Divi Engine @ https://diviengine.com/
➤ Get the Divi Theme @ https://www.elegantthemes.com/affilia...
➤ Build Dynamic Divi Websites with ACF & Divi Machine @ https://diviengine.com/product/divi-m...

CHAPTERS
00:00 Introduction
00:30 What is a Custom Post Type?
01:41 Generate the Code for a Custom Post Type
07:30 Adding the Custom Post Type Code to functions.php
10:14 Testing our New Divi Custom Post Type
11:55 Adding a Custom Field to our Custom Post Type
13:12 Build a Template for a Custom Post Type with Divi Theme Builder
17:16 A Tip for Using Code to Build a Template for your Custom Post Type
18:23 Conclusion