If you're enjoying this video and series there are several ways to help support this channel: - Check out my patreon www.patreon.com/learnwebcode - Use my DreamHost link click.dreamhost.com/aff_c?offer_id=109&aff_id=17231 - Join my other coding courses learnwebcode.com/
Is it possible to create a plugin that registers a custom post type? ( instead of using ACF ) And how would you query the custom posts on the front end ?
Yes, until recently that was the only way to register a post type; if you Google for "register_post_type" that should load up the WP docs. As for querying the posts on the front end; we're going to cover that in not the next video, but the one after that in our PHP basics lesson. We'd just use WP_Query() and spell out 'post_type' => 'pet'
Good question; the simple answer is "because of the block editor" haha. The block editor uses React.js (which is great but introduces a lot of complexity) and so you're going to need some sort of Node.js tool to transpile your JSX into regular JS. If you weren't building a new block type, and were just building a traditional plugin with its own settings page you 100% do not need to use the official WordPress NPM script. Several lessons from now we're going to create our own classic theme and we will indeed create our own folder/file structure from scratch.
All i know about wordpress developping, i learned it from your udemy course, thanks a lot. Now i created multiple websites for my clients with templates created from scratch. Do you plan to create a section for WooCommerce development? it is difficult to find un real complete course about it. Thanks again
Thank you so much! So glad to hear the WP course was helpful. I can't make any promises about WooCommerce at this point, but I would like to (at some point) cover the basics of taking a classic theme that we're the creator of, and adding basic WooCommerce support to it.
If you're enjoying this video and series there are several ways to help support this channel:
- Check out my patreon www.patreon.com/learnwebcode
- Use my DreamHost link click.dreamhost.com/aff_c?offer_id=109&aff_id=17231
- Join my other coding courses learnwebcode.com/
I followed a couple of your courses on Udemy... You seriously changed my way to code for WordPress!
Was looking forward to this, so thank you again for your time and creating these videos.
very good Teacher
Really good video!
Thank you, very useful.
Is it possible to create a plugin that registers a custom post type? ( instead of using ACF ) And how would you query the custom posts on the front end ?
It's pretty easy to do. I show it on my channel. Dynamic content in WordPress using post meta.
Yes, until recently that was the only way to register a post type; if you Google for "register_post_type" that should load up the WP docs. As for querying the posts on the front end; we're going to cover that in not the next video, but the one after that in our PHP basics lesson. We'd just use WP_Query() and spell out 'post_type' => 'pet'
Please could make a video for ACF custom Field ?
I covered ACF 2 or 3 videos ago on my channel. Does that video cover what you're interested in?
Interesting, but why use node.js and the command line instead of just building your own folder/file structure?
this is the "official" way to create plugins, recommended by Wordpress i think
Good question; the simple answer is "because of the block editor" haha. The block editor uses React.js (which is great but introduces a lot of complexity) and so you're going to need some sort of Node.js tool to transpile your JSX into regular JS. If you weren't building a new block type, and were just building a traditional plugin with its own settings page you 100% do not need to use the official WordPress NPM script. Several lessons from now we're going to create our own classic theme and we will indeed create our own folder/file structure from scratch.
@@LearnWebCode Thanks! I like the idea of simple. Just came across this and will plan to catch the rest in the series. 😃
All i know about wordpress developping, i learned it from your udemy course, thanks a lot. Now i created multiple websites for my clients with templates created from scratch. Do you plan to create a section for WooCommerce development? it is difficult to find un real complete course about it. Thanks again
Thank you so much! So glad to hear the WP course was helpful. I can't make any promises about WooCommerce at this point, but I would like to (at some point) cover the basics of taking a classic theme that we're the creator of, and adding basic WooCommerce support to it.
I am a professional thumbnail designer, you can make thumbnails from me if you want