Custom Post Types - WordPress Theme Development From Scratch (Ep 9)

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Learn how to create custom post types in WordPress. Display content in a different area than just your posts and pages. Completely customise the way content is added into your WordPress website.
    In this video series, you will be learning about all of the parts of building your own WordPress theme. It is structured to help someone who doesn't know WordPress to simply understand the core concepts of WordPress and build a simple WordPress theme, or even integrate an HTML theme you've created into WordPress.
    This WordPress theme development tutorial is tailored for people who understand HTML/CSS and some basic PHP. Javascript is not really needed as we will be using it minimally in this WordPress theme development tutorial.
    This WordPress theme development tutorial from scratch will not be the best tutorial if you are intending to create the next million dollar them on ThemeForest, however, it will teach you the core concepts and features so you can evolve into an awesome Web developer in WordPress theme development.

Комментарии • 107

  • @franktugume5364
    @franktugume5364 4 года назад +1

    This is unfair this guy should have millions of subscribers and views for quality content ,he has exactly what many people are searching for regarding word press theme development..Lets support him by sharing his content and channel....if you-tube allowed multiple subscription i would subscribe everyday.

  • @thesoniccanvas
    @thesoniccanvas 5 лет назад +17

    Just stopped to say thank you. Please keep up what you're doing, don't stop, the lessons are excellent.
    P.S. Don't edit the video, the mistakes you are doing and correcting them are great way for us to learn troubleshooting.

  • @ShelldonWells
    @ShelldonWells 3 года назад +1

    I know this is like a year later, but your videos are the best I have come across yet! If only I found you sooner I would have saved so much $ by watching you rather than paying for useless udemy videos or buying books that did not get as detailed as your videos do. Well done man!

  • @RaajBhatta
    @RaajBhatta 3 года назад

    Hey are you searching for wordpress course video in youtube .. and ate you confuse which teacher's video choose to learn ... you are in right place .... this is one of the best best best best video class for me cheersss

  • @sadeqsp8726
    @sadeqsp8726 4 года назад +3

    Hi Mr.Digital
    I'm really enjoying your tutorials, they've been so useful, Thanks for these fantastic courses.

  • @tonybrown7847
    @tonybrown7847 2 года назад

    should have kept watching until this point, took me a long time to figure out what the error was, been doing mostly JS the past several years lol
    This series is outstanding!

  • @КирилКирилл-ю2б
    @КирилКирилл-ю2б 2 года назад +1

    Thank's fo video tutorials wordpress development. Could you do tutorials about development custom plugins and themes wordpress? Continue this please

  • @martinkaspar5095
    @martinkaspar5095 2 года назад

    awesome - looks great. Plz keep up doing more videos like that! The WordPress-community is looking forward to your next video

  • @HimasRafeek
    @HimasRafeek 4 года назад +2

    Hi,
    Please take this to the next level by *Creating custom Woocomerce theme.*
    Thanks for Great Tutorials, Please Keep Going Need more contents.
    Thank you!! 😀

  • @singlepixelstudio8549
    @singlepixelstudio8549 3 года назад +1

    For those who looking for a car icon, it's actually updated in wordpress. 'menu_icon' => 'dashicons-car'

  • @sneaknshotso6658
    @sneaknshotso6658 4 года назад

    thank you very much, these marathon of Wordpress Tutorial really helpful for someone like me wants to learn from a scratch...

  • @volodymyrselevertov
    @volodymyrselevertov 5 лет назад +1

    After previous video from this course waiting next episode, thanks for sharing your knowledge! :)

    • @mrdigitalau
      @mrdigitalau  5 лет назад +2

      Thanks mate I appreciate your support :) Cheers

  • @toglannestor400
    @toglannestor400 Год назад

    Your job is perfect and complete!!! Thank you Boss!Thank you so much!

  • @وسيمالشوافي-ح9ش
    @وسيمالشوافي-ح9ش 4 года назад

    Hello Sir, You are really The One Who Explaining in a very good way and all what we need Thank you very much i was confuse in coding right now i'm clear about God Bless You Sir

  • @samirsamir7779
    @samirsamir7779 5 лет назад

    Hi Mr.Digital , thanks for your great content , you are very appreciated as instructor and your PHP skill is remarkable . please continue to deliver such content .

    • @mrdigitalau
      @mrdigitalau  5 лет назад +1

      Thanks Samir, I really appreciate your kind words mate. I will definitely be creating more content! Please subscribe and you ill be notified of more videos. There is more to come on this series.

    • @samirsamir7779
      @samirsamir7779 5 лет назад

      @@mrdigitalau
      Hello mr.Digital , thanks your reply , I've already subscribed to your channel , allows me to suggest you to focus with WP dev while it's the main tool used today in the world , more than 28% I think of websites are built from WP . I suggst also to check Upwork to see what other is in demand , I think when it comes to web dev : the Lamp PHP stack is really widely used ( HTML CSS JS PHP SQL ) and WP is built around these languages ; of course React and Express JS as well Node are the most used after PHP CSS HTML . from another side I was asking my self if you can make some WP plugins Dev. series ? thanks Mr.Digital for your videos , in case you make som long courses on udemy too let us know please ..best!

  • @fvgoya
    @fvgoya 5 лет назад

    Great content as always and looking forward for the NEXT video!!!!

  • @odongpinymichael3728
    @odongpinymichael3728 4 года назад

    thankyou, i just watch a bit and got the idea, may God bless you.

  • @tucado
    @tucado 4 года назад +1

    you don't actually need to type "div.row" and TAB. the ".row" and TAB will make the job done. When you specify the class after dot it will automatically create a div.

  • @omarahmetagic5936
    @omarahmetagic5936 2 года назад

    Amazing tutorial. You helped me solve a big issue so thanks a lot.

  • @jeremiaholuwaseun7327
    @jeremiaholuwaseun7327 5 лет назад +1

    cool!! can't wait for the next video. And pls, can you do a video on redux framework for theme panels

  • @deacon1981
    @deacon1981 4 года назад

    ​ @Mr Digital
    Hi! We are following your tutorial, and learning a lot, so let us thank you!

    • @mrdigitalau
      @mrdigitalau  4 года назад

      Awesome. Never stop learning Attila!

  • @DavideZugna
    @DavideZugna 2 года назад

    Grazie! Thanks for this great tutorial: now I have make my first custom post type :)

  • @tungvothanh6339
    @tungvothanh6339 3 года назад

    your lessons are excellent, thank you very much!!!

  • @birdbrainsolutions6112
    @birdbrainsolutions6112 4 года назад

    Simple, sweet and I really understand it very easily. Great video, thanks! Subscribed :)

  • @MarkPlante
    @MarkPlante 5 лет назад

    That you for doing this class!!! Great stuff!!!

    • @mrdigitalau
      @mrdigitalau  5 лет назад

      You're welcome Mark I hope you have found some value! Cheers

  • @NathanDarby
    @NathanDarby 4 года назад

    amazing series which is so easy to learn keep it up!.

  • @stumacleod8040
    @stumacleod8040 Год назад

    If you get a warning about tags, he actually explains how to fix that @ 13:30 :)

  • @Neghaheno
    @Neghaheno 3 года назад

    Great tutorial! Highly recommonded!

  • @emmagale9839
    @emmagale9839 4 года назад

    Thanks for these videos, they are so informative and clear to follow- I am working my way through them all and really enjoying the process. I have one question from this video though - how you add the custom post type to a menu? I'm sure it's something simple - but I can't work it out :-/

  • @marye1218
    @marye1218 3 года назад

    Juste un grand merci pour votre vidéo qui est super !!! vous êtes un excellent pédagogue ;-)

  • @tucado
    @tucado 4 года назад +1

    This course is really great. Is it possible to download your code? I have few Warnings and I want to compare what have I done wrong. Thanks a lot.

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 5 лет назад

    Thanks thanks was waiting for CPT as your promise :D

  • @user-mk9ig9bo3u
    @user-mk9ig9bo3u 4 года назад

    that what I was in need of. You cool Mister

  • @NicuLucas1993
    @NicuLucas1993 3 года назад

    awesome, keep it UP! You are awesome, exactlly what i need. Love the content )) Best regards!

  • @imran.rafique
    @imran.rafique 3 года назад

    thanks man. simply the best

  • @youtuber9991
    @youtuber9991 3 года назад

    7:23 They actually added a car now lol

  • @almamunhossen
    @almamunhossen 2 года назад

    Thank you so much

  • @joe_malott
    @joe_malott 3 года назад

    This is amazing. Thanks so much!

  • @samricheson2
    @samricheson2 3 года назад

    Thank you for this video!

  • @user-qk5mr8ez6y
    @user-qk5mr8ez6y 3 года назад

    Dude thank you this is super helpful

    • @mrdigitalau
      @mrdigitalau  3 года назад

      No worries mate you're welcome!!

  • @aspsa6246
    @aspsa6246 4 года назад

    This is an exceptionally good tutorial series and is very much appreciated. Thank you. Is there an alternative to using WordPress Dashicons for the 'menu_icon' key of a custom post/page type arguments array?

  • @sororbudwiser
    @sororbudwiser 4 года назад +1

    Wouldn't it be better to create custom post types as a custom plugin in your theme? I think adding it in your function.php will bloat the file. What are your thoughts? Thanks.

  • @veracitytown9942
    @veracitytown9942 3 года назад

    The car dashicon is now available => dashicons-car
    Enjoy!

  • @adolaize
    @adolaize 2 года назад

    where does all this data get stored? Is there a database (spreadsheet) that we can manage more directly? Or is it possible to create one (future tut??)

  • @martinkaspar5095
    @martinkaspar5095 2 года назад +1

    by the way: do you have the code - somewhere!? -this would be great

  • @libertyTech1
    @libertyTech1 2 года назад

    Thanks for this Mr. Digital, am confused about what to do here. I'm converting my static website to WordPress, this website is an entertainment site that has many pages with posts related to the pages. How can I publish sports news on the sports page and so on? I will be looking forward to hearing from you. Thanks.

  • @qazaq6893
    @qazaq6893 Год назад

    Hi Mr Digital! When I delete Toyota and hit enter like you did on 17:53 it shows page not found. Why is that?

  • @MarkPlante
    @MarkPlante 5 лет назад

    Hi, hope that all is well, Is there an ETA for the next part of this lesson

  • @ahmadluthfi4111
    @ahmadluthfi4111 4 месяца назад

    This is illegal to be free.... Great video

  • @rosemagazine
    @rosemagazine 4 года назад +1

    Thanks for the tutorial. Had to use to get rid of the error. Endforeach was giving me an error

    • @webguybob
      @webguybob 3 года назад

      Hey @Garey , I'm running into a similar problem. Did you have change the 'foreach' to some sort of an if statement? ...or did you just change to

    • @webguybob
      @webguybob 3 года назад +1

      Here's the error...
      Warning: Invalid argument supplied for foreach() in C:\Users\User2\Local Sites\wpthemetutorial\app\public\wp-content\themes\mytheme\includes\section-blogcontent.php

    • @singlepixelstudio8549
      @singlepixelstudio8549 3 года назад

      @@webguybob I have the same error, don't know how to fix it

    • @webguybob
      @webguybob 3 года назад

      @@singlepixelstudio8549 I can't move forward without a fix. Guess I'll just have to stop this series.

    • @singlepixelstudio8549
      @singlepixelstudio8549 3 года назад +2

      @@webguybob Actually, he corrected the error at 13:19.

  • @davidstamper8335
    @davidstamper8335 2 года назад

    I am just wondering if this method is still valid now that it is nearly 3 years old?

  • @SonAyoD
    @SonAyoD 3 года назад

    im using a mac and XAMPP. i don'y get error messages when theres an error, i just get a generic, click to trouble shoot wordpress, or in the tag error situation, nothing happened.

  • @siobhanmundy4170
    @siobhanmundy4170 4 года назад

    Hi! Thanks so much for these videos :) I have followed them all the way through from the beginning and have learnt so much! Is there a way I can contact you somewhere else other than commenting here?

    • @mrdigitalau
      @mrdigitalau  4 года назад

      Hi Siobhan. You're welcome, I am glad you have learnt a lot. You can email me at sean@mrdigital.com.au. Cheers

  • @ben31der
    @ben31der 5 лет назад

    thanks for the great content! thats amazing, i’ve learnt so much.
    i have a question: how can i implement languages options? here in switzerland we often have to have content in different languages like german, french and english. beside the content on the pages also the menu has to change into different languages. which solutions are available? how would you do that?
    thank you so much!

    • @mrdigitalau
      @mrdigitalau  4 года назад +2

      Hey Benjamin - you're very welcome mate, I am very happy to have been able to help you. there's a plugin called WPML (wpml.org/) - this will work how you need it. Maybe I can make this a video in the course!

  • @RaajBhatta
    @RaajBhatta 3 года назад

    i make from this but when i add field from ACF plugin its not showing there i think we need some code here can anyone help me please?

  • @antonlavrentev
    @antonlavrentev 4 года назад

    Thanks for the great videos! It really helps a lot.
    Btw, is there any way to create a custom archive template for the taxonomy categories? In case of this tutorial, archive template for the 'Brands' , because it looks like it uses standard archive template and not 'archive-cars.php'. May be you can cover this in some future videos...

    • @antonlavrentev
      @antonlavrentev 4 года назад +1

      Made it work by creating template file taxonomy-brands.php

    • @adolaize
      @adolaize 2 года назад

      @@antonlavrentev what did you put in your taxonomy-brands.php to make it work? I'm having the same issue... #TIA

  • @LangitAmaravati
    @LangitAmaravati 4 года назад

    Can I use this custom post type for create a project page? Or, maybe you'll create a video about to create a project page? Thank you.

    • @mrdigitalau
      @mrdigitalau  4 года назад +1

      Of course you can. I'll cover it in the next video :) Stay tuned

  • @monkeybrain13
    @monkeybrain13 5 лет назад

    Thank you so much for sharing your knowledge... Can you please add a link to your github or gitlab repo ?

    • @mrdigitalau
      @mrdigitalau  5 лет назад +2

      Hi Mario, of course I will upload all of that once I finish the series if that's cool?

  • @SonAyoD
    @SonAyoD 3 года назад

    the dashicons bit does not work for me. can anyone help?

  • @nicolastuomaala7068
    @nicolastuomaala7068 2 года назад

    How could this same thing be done with API data so that if my client has their data in a different database? Then I would not need to add every car manually.

    • @amateruss
      @amateruss 2 года назад

      Fetch the data using javascript then pass the variables into php.

  • @edmoods
    @edmoods 2 года назад

    If you want an image in google image search results instead of Open link choose Open image

  • @sororbudwiser
    @sororbudwiser 3 года назад

    is there a way to have a single-page with just a url like 'sitename/projects/' and omit the 'slug-of-post' on the end of projects/ ?

    • @mrdigitalau
      @mrdigitalau  3 года назад +1

      That would typically be the archive page of the "projects" custom post type. If you create a project custom post type and you then create a template called 'archive-projects.php' - that would be the page that would work on that address.

    • @sororbudwiser
      @sororbudwiser 3 года назад

      @@mrdigitalau Yes, I thought that would be the way. Could it also be the same for a page template?

  • @ThomasDevOnline
    @ThomasDevOnline 3 года назад +1

    I'm so lost.. You create a taxonomy, yet so did I and I've followed everything you have and it's not showing up lol

    • @adolaize
      @adolaize 2 года назад +1

      same issue

  • @self2008self
    @self2008self 4 года назад

    'dashicons-car' for car icon

  • @Hammagg
    @Hammagg 4 года назад

    Mid video, I run in to a problem. I try and solve it - can't. Listen to 1 more minute of your video, and it's fixed. Thanks!

    • @mrdigitalau
      @mrdigitalau  4 года назад

      You're welcome mate. Just curious what was the issue you had?

    • @Hammagg
      @Hammagg 4 года назад

      @@mrdigitalau it was regarding the tags vs. category. where you went and edited the code to add the part if there are tags then continue, if not go on to categories. thanks again!

  • @urosrakic8320
    @urosrakic8320 4 года назад

    No more videos? :(

    • @mrdigitalau
      @mrdigitalau  4 года назад +3

      Sorry mate! I've been a bit flat chat with work. I run my own web development business so I have to do these video in between my work hours :) I'll try get some more videos done tonight, or tomorrow -

    • @urosrakic8320
      @urosrakic8320 4 года назад

      @@mrdigitalau Oh, sure bro, thank you so much! :)

  • @RussDnB
    @RussDnB 4 года назад

    EDIT: Tags error. You covered this about a minute later :P

  • @MikeRitterOnline
    @MikeRitterOnline 2 года назад

    A lot of good description of CPT creation, but not the way to create CPTs in sustainable WP development. CPTs should be added via Plugin so they are available with different themes. Also, there is no reason to be adding CPTs or other theme features directly in `functions.php`. Please teach these concepts the right way so viewers do not need to unlearn bad technique.

  • @goldenemperor888
    @goldenemperor888 3 года назад

    "dashicons-car" fyi...

  • @jasongoossens
    @jasongoossens 3 года назад

    Sooo much whitespace...! 😶

  • @MuhammadAdnan-gx6rd
    @MuhammadAdnan-gx6rd 4 года назад

    It's 2020 man. You ware lost in 2019 ?

    • @mrdigitalau
      @mrdigitalau  4 года назад +1

      Very busy with work dude! I am a full time web developer running my own business - will try finish this asap - sorry mate!!

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd 4 года назад

      @@mrdigitalau yeah I know it in previous comments you said it twice.running business. ... anyways I'm still waiting and exploring. ..

    • @MuhammadAdnan-gx6rd
      @MuhammadAdnan-gx6rd 4 года назад

      @@mrdigitalau when you're gonna filter CPT post with Texonomies ? Brands

  • @JaehoonMe
    @JaehoonMe 3 года назад

    Thank you very much