How To Create And Use Custom Post Types In Divi | Complete Guide

Поділитися
Вставка
  • Опубліковано 15 гру 2024
  • This tutorial will show you how to create your own custom post types with our free generator and how to add and use them in your Divi website.
    Blog Post: bit.ly/DiviCPTs
    CPT Generator: www.peeayecrea...
    A Complete Guide To CPTs & Divi - Learn How To Use Our Custom Post Type Generator And How They Integrate with Divi
    This tutorial will who you how to create and use custom post types in Divi! We are doing this because we have a new resource on our website! You can now generate custom post types and taxonomies using our free generator!
    We will cover:
    -What Is A Custom Post Type
    -How To Use Custom Post Types In Divi
    -How To Create A Custom Post Type In Divi
    Join The Divi Teacher Facebook group: / thediviteacher
    Visit our Divi child themes, plugins, tutorials, and courses here: www.peeayecrea...
    Thanks for watching!

КОМЕНТАРІ • 98

  • @ultimatekv
    @ultimatekv 4 роки тому +6

    So much effort just to help/advise people you don't even know...Wow you are a blessing in disguise Nelson. That generator is a gem :)

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +3

      Thank you for recognizing and appreciating all of my effort :) Really glad people are loving the generators!

  • @antaris03
    @antaris03 2 роки тому +1

    One of the most useful tutorials regarding the most useful tool for Divi I ever saw. This is a really an awesome gift, Nelson. You are a real hero. Thank you so much!

  • @carlcyphers8175
    @carlcyphers8175 4 роки тому +4

    Nelson, Your tutorials are always PRECISE and TO THE POINT! Another excellent tutorial. Keep up the great work!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Thank you Carl! I'm glad you like the style, it's just natural to me and I'm happy that people enjoy it!

  • @mr.c.2888
    @mr.c.2888 Рік тому

    Wow this is amazing. Gonna try it. Integration to the builder is key.

  • @robeeeeen
    @robeeeeen 3 роки тому +1

    Nelson! Nice voice, accent, style of elaborate .....

  • @kevganhiga
    @kevganhiga 4 роки тому +1

    That was super helpful! I knew how to do this with Elementor and jet Engine but not with Divi. Thank you soo much!! greetings from Perú!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Kevin, I'm glad I could help! Glad to meet you!

  • @pevi2007
    @pevi2007 3 роки тому +1

    I love this! Good job explaining

  • @MDC-78
    @MDC-78 Рік тому +1

    Excellent, thank you!

  • @sinewavezero
    @sinewavezero 3 роки тому +1

    Thank you! This just helped me SOOOOOO MUCH!

  • @ceciliaolivera9540
    @ceciliaolivera9540 3 роки тому +1

    So very helpful. Thank you!

  • @mrjamiebowman
    @mrjamiebowman 2 роки тому

    WOW! This is amazingly simple! I am glad I didn't have to edit/create an archive page.

  • @Gabo135790
    @Gabo135790 2 роки тому

    You're actually doing my life easier! Thank you!

  • @17aig
    @17aig 4 роки тому +3

    Absolutely amazing Trattoria thank you so much for that I can't wait for the next one

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Glad you enjoyed it! The one for custom Taxonomies is already scheduled for Tuesday!

  • @AsitAithal
    @AsitAithal 4 роки тому +1

    Absolutely brilliant.

  • @zakshafi7595
    @zakshafi7595 4 роки тому +1

    Another great tutorial with a easy to use tool for customising WordPress. Thank you Nelson :)

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      You are welcome! Next week wi be a follow-up on custom taxonomies!

  • @LiutaurasLiksa
    @LiutaurasLiksa 4 роки тому +1

    Amazing video! Thank you

  • @Dev_GenWay
    @Dev_GenWay 4 роки тому +1

    Thank you so much! I just loved it😍🥰

  • @Generation2434
    @Generation2434 2 роки тому

    Hi, I can't find the free child theme anywhere on the blog post. Can you please help me? Thanks!

    • @Generation2434
      @Generation2434 2 роки тому +1

      Never mind, I dug around on your site and found the free child theme. Thank you for the resources!

    • @PeeAyeCreative
      @PeeAyeCreative  2 роки тому

      Okay glad you found it! 👍

  • @nancymikyska2832
    @nancymikyska2832 4 роки тому +1

    Thank you!

  • @Repko01
    @Repko01 4 роки тому +2

    W.O.W. Incredible. Thanks a lot :)

  • @Berscom
    @Berscom 3 роки тому

    Thank you, Nelson, great tool. The generated code works only for Divi?

  • @overholted
    @overholted 2 роки тому

    Nice. Thanks!

  • @danielnewland4680
    @danielnewland4680 4 роки тому +1

    Great video, very handy tool. Can I style the category pages for the custom post type?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Yes, absolutely, just use the Divi Theme Builder!

  • @zaazoou
    @zaazoou 3 роки тому

    Wow! I was becoming crazy with the CPT stuff and archive page and all that code (I don't know a bit of php)
    What a relief to find your video because now IT WORKS!
    Thank you so much! ♡ ♡ ♡
    Just one question: does the generator work for someone who would not be using Divi?

  • @antonioguedes6982
    @antonioguedes6982 4 роки тому

    Thank you so much for this! One question: how can you support the Gutenberg editor, not only the classic one?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Antonio, good question. Check this www.google.com/amp/s/www.cloudways.com/blog/gutenberg-wordpress-custom-post-type/amp/

    • @antonioguedes6982
      @antonioguedes6982 4 роки тому

      @@PeeAyeCreative Thank you! I do appreciate a lot all your tips.

    • @antonioguedes6982
      @antonioguedes6982 4 роки тому

      @@PeeAyeCreative BTW, that worked! Just that one line of code will support Gutenberg. Thanks again.

  • @muhammadhammad5274
    @muhammadhammad5274 2 роки тому

    Great 👍
    can you tell me one thing.
    i have design my archive page.
    how can i added this design which is made by me.

  • @ajna-libera
    @ajna-libera 3 роки тому

    Hi Nelson! first of all many thanks for this video. I just have a question: If I already have posts written on the post section, am I able to pass them to the new "cats" (or whatever category) I have set? If I can do this, how? I've been trying by myself but I just don't get it... Thanks in advance and regards from Spain.

  • @ddluvsbooks
    @ddluvsbooks 3 роки тому

    Hi, I tried to add the code to my site for a book review custom post type. I keep receiving an error for this line: function register_cpt_book-review() {
    I use the snippets plugin to add my code since I am a complete novice at coding. Any ideas?

  • @mrkbjames3094
    @mrkbjames3094 4 роки тому +1

    You are so freaking helpful:)

  • @yurykirilyuk1019
    @yurykirilyuk1019 4 роки тому

    Thanks for the tutorial!
    I have a question - is it possible to show only posts from a specific category in custom post type?
    I.e. I have created a CPT 'Cats' and checked 'Categories (WP Core)' in Taxonomies. Assume I have categories 'Black' and 'White'. And I want to show only posts from CPT 'Cats' which have category 'Black', but there is no 'Included Categories:' if I choose 'Post Type' Cats in DIVI Blog Module.
    Is there a way to do that?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      No, that's the main question on the blog post and the answer is always the same...Divi needs to add that, it's not possible to create with a tutorial.

    • @yurykirilyuk1019
      @yurykirilyuk1019 4 роки тому

      @@PeeAyeCreative Thanks for your answer. I see... It would be a great feature if DIVI adds that to a blog module.

  • @MillionaireMakerAcademy
    @MillionaireMakerAcademy 2 роки тому

    Hi, by the way, great tutorial. I followed the instructions and it worked but somehow, the news post type categories are tied to the original POST type. If I create/delete a category in my newly created post type, it is also created/deleted on the basic POST type on WordPress. They should be independent. Why is that happening?

  • @claus31130
    @claus31130 3 роки тому

    So if I want to make a website selling cars for instance.... i can make a "car" instead og "cat"? And then use this a show page ?

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому +1

      Sure, anything you want can be a custom post type.

    • @claus31130
      @claus31130 3 роки тому

      @@PeeAyeCreative THX, just wanted to be sure.

  • @CathrynHahn
    @CathrynHahn 4 роки тому

    This is amazing! Thank you so much. If my new custom post type does not allow me to use the Divi Builder (button is not available) is there a way to enable that?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      Hi Catherine, yes, this is a toggle in Theme Options>Builder. Each post type has the option to enable the builder there.

    • @CathrynHahn
      @CathrynHahn 4 роки тому +1

      @@PeeAyeCreative Ahh, I knew that. Thank you!! This is fabulous.

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      No problem, glad you like it!

  • @MichaelGer
    @MichaelGer 4 роки тому

    Excellent once again! Now... how about filtering?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Glad you like it! Filtering is a huge task, I'll leave that to a plugin that I hope to do a tutorial on soon.

    • @MichaelGer
      @MichaelGer 4 роки тому

      @@PeeAyeCreative will would be possible to set the filtered portfolio module to get its data from the custom post instead of the projects? After all they are both custom post types. (Just a thought)...

  • @Mosestylez
    @Mosestylez 4 роки тому

    So CPT UI isn't supported on Divi? :(

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      I'm not sure what you mean. Did I say that?

  • @cedricluck
    @cedricluck 3 роки тому

    Awesome UA-cam channel and awesome CTP generator. Now what I would like to know is how to integrate your new CTP in a "Full-width Post Slider" section on the DIVI builder? (making it a "Full-width Cats Slider" for example)

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      I don't know, those are build into Divi as for posts so it's impossible to change without duplicating them entirely to a child theme.

  • @razin275
    @razin275 3 роки тому

    Is there any way to not have viewers open the single posts? Only see them in the archive page thats it

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      I'm not sure what you mean. They should open fine as that is normal WordPress structure unrelated to this.

  • @MisteR--
    @MisteR-- 3 роки тому +1

    Thanks for this tutorial ... it missed just 2 important things for me : ...
    1- how to create a form to allow users creating cats from the front-end
    2- a right search engine to show right results if I search for a black cat for exemple

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Submitting from the frontend would be a custom feature of some plugin, so not really relevant to this guide. Also, we have another tutorial on custom post type search.

    • @MisteR--
      @MisteR-- 3 роки тому

      @@PeeAyeCreative can you share the link please for this other tutorial ?

  • @thebibleproof
    @thebibleproof 3 роки тому

    Hey Nelson, can I use the filterable portfolio module to pull in UA-cam thumbnails and urls into a grid layout? Would they be custom post types? Great job explaining, as usual.

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      I'm not sure, but I don't think that would be possible without some kind of customized module.

  • @JulieWolf
    @JulieWolf 3 роки тому

    Question: I installed your Divi child theme, but hesitate to activate it. Can I have more then 1 theme active? What will happen to the Divi theme once I activate your child theme? Your instructions are: "To use our free Divi child theme, just install it like a normal theme. Go to your WordPress Dashboard to Appearance>Themes>Add New. Then click on Upload Theme and choose the downloaded file. Click Install Now, and then Activate the theme!"

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Only one theme in WordPress is active at a time. But a child theme requires the parent theme (Divi) to be installed. Divi is still doing everything, but the child theme is like another layer but separate.

  • @tutorialz
    @tutorialz 3 роки тому +1

    I love that you can use custom post types with Divi. But working with it now over year, I find the weakest link and a total show stopper is the actual blog module (were you create your listing before getting to the post). The module only lets you list title, excerpt and image (I hardly ever use the meta). I would like to have a module that can create custom blog listings, where I can show custom post type fields within my listing. If you want to create a press review post type, then in the blog you would also like to list the author of the (external) press article, together with a title and description (not just in the post itself). Or say you want to do something as simple as quotes. In any quote you have an excerpt and the quote author. So if you put the quote in the excerpt, were are you gonna put the author? In the title? Its a total mess! How are you going to get the author (not WordPress author, but quote author) listed in the blog module? It's impossible and a main reason why I avoid using custom post types all together. You can of course use a plugin, but then you cannot style your post type within Divi. It's a little bit of a half baked solution right now ...

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Hi Walter, sure and I don't see that as a major problem, because adding custom post types or custom fields is beyond the default and when we do that we jus know we will need to use another Divi 3rd party plugin for making the loop layout. Maybe I'm just too used to it, but I feel that is mostly fair.

    • @tutorialz
      @tutorialz 3 роки тому

      @@PeeAyeCreativeThank you BTW for posting all these great blogs and videos. Greatly appreciated. You deserve the Divi purple heart for it, you really do! It is so much work and I am sure you have other things to take care of as well. Regarding loop layouts, any suggestions for a good 3rd party plugin?

  • @jasononey
    @jasononey 4 роки тому

    Hey buddy. just an FYI you should probably note to folks that the key must be one word or use underscores as separators to properly work. Also, that the key cannot be the same value as Custom Query Variable:

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Sure, I'll update the post to make that as clear as possible!

  • @keitasmith-9821
    @keitasmith-9821 3 роки тому

    Okay, to be honest I think it's definitely an improvement, however even after following these steps, something important is missing. Custom post types usually have custom fields and these custom fields do not show up as elements you can include in the blog module. Therefore it's not very helpful to me is there a way to allow the blog module to be modified so it can include the custom fields of custom post types.

  • @anarkiamusicmovie7036
    @anarkiamusicmovie7036 3 роки тому

    Nice, but if tomorow we want change Them all CPT will be lose... xD
    With a Plugin it is a better solution for long time... Example with CPT UI.

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Huh? Why would they be lost? This has nothing to do right the theme.

  • @olivermahrle
    @olivermahrle 4 роки тому

    you look like jeff bezos