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.
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.
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.
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!
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
Hi Mr.Digital
I'm really enjoying your tutorials, they've been so useful, Thanks for these fantastic courses.
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!
Thank's fo video tutorials wordpress development. Could you do tutorials about development custom plugins and themes wordpress? Continue this please
awesome - looks great. Plz keep up doing more videos like that! The WordPress-community is looking forward to your next video
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!! 😀
For those who looking for a car icon, it's actually updated in wordpress. 'menu_icon' => 'dashicons-car'
thank you very much, these marathon of Wordpress Tutorial really helpful for someone like me wants to learn from a scratch...
After previous video from this course waiting next episode, thanks for sharing your knowledge! :)
Thanks mate I appreciate your support :) Cheers
Your job is perfect and complete!!! Thank you Boss!Thank you so much!
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
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 .
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.
@@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!
Great content as always and looking forward for the NEXT video!!!!
thankyou, i just watch a bit and got the idea, may God bless you.
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.
Amazing tutorial. You helped me solve a big issue so thanks a lot.
cool!! can't wait for the next video. And pls, can you do a video on redux framework for theme panels
@Mr Digital
Hi! We are following your tutorial, and learning a lot, so let us thank you!
Awesome. Never stop learning Attila!
Grazie! Thanks for this great tutorial: now I have make my first custom post type :)
your lessons are excellent, thank you very much!!!
Simple, sweet and I really understand it very easily. Great video, thanks! Subscribed :)
That you for doing this class!!! Great stuff!!!
You're welcome Mark I hope you have found some value! Cheers
amazing series which is so easy to learn keep it up!.
If you get a warning about tags, he actually explains how to fix that @ 13:30 :)
Great tutorial! Highly recommonded!
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 :-/
Juste un grand merci pour votre vidéo qui est super !!! vous êtes un excellent pédagogue ;-)
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.
Thanks thanks was waiting for CPT as your promise :D
You're welcome mate!
that what I was in need of. You cool Mister
awesome, keep it UP! You are awesome, exactlly what i need. Love the content )) Best regards!
thanks man. simply the best
7:23 They actually added a car now lol
Thank you so much
This is amazing. Thanks so much!
Thank you for this video!
Dude thank you this is super helpful
No worries mate you're welcome!!
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?
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.
The car dashicon is now available => dashicons-car
Enjoy!
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??)
by the way: do you have the code - somewhere!? -this would be great
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.
Hi Mr Digital! When I delete Toyota and hit enter like you did on 17:53 it shows page not found. Why is that?
Hi, hope that all is well, Is there an ETA for the next part of this lesson
This is illegal to be free.... Great video
Thanks for the tutorial. Had to use to get rid of the error. Endforeach was giving me an error
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
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
@@webguybob I have the same error, don't know how to fix it
@@singlepixelstudio8549 I can't move forward without a fix. Guess I'll just have to stop this series.
@@webguybob Actually, he corrected the error at 13:19.
I am just wondering if this method is still valid now that it is nearly 3 years old?
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.
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?
Hi Siobhan. You're welcome, I am glad you have learnt a lot. You can email me at sean@mrdigital.com.au. Cheers
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!
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!
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?
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...
Made it work by creating template file taxonomy-brands.php
@@antonlavrentev what did you put in your taxonomy-brands.php to make it work? I'm having the same issue... #TIA
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.
Of course you can. I'll cover it in the next video :) Stay tuned
Thank you so much for sharing your knowledge... Can you please add a link to your github or gitlab repo ?
Hi Mario, of course I will upload all of that once I finish the series if that's cool?
the dashicons bit does not work for me. can anyone help?
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.
Fetch the data using javascript then pass the variables into php.
If you want an image in google image search results instead of Open link choose Open image
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/ ?
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.
@@mrdigitalau Yes, I thought that would be the way. Could it also be the same for a page template?
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
same issue
'dashicons-car' for car icon
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!
You're welcome mate. Just curious what was the issue you had?
@@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!
No more videos? :(
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 -
@@mrdigitalau Oh, sure bro, thank you so much! :)
EDIT: Tags error. You covered this about a minute later :P
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.
"dashicons-car" fyi...
Sooo much whitespace...! 😶
It's 2020 man. You ware lost in 2019 ?
Very busy with work dude! I am a full time web developer running my own business - will try finish this asap - sorry mate!!
@@mrdigitalau yeah I know it in previous comments you said it twice.running business. ... anyways I'm still waiting and exploring. ..
@@mrdigitalau when you're gonna filter CPT post with Texonomies ? Brands
Thank you very much