Block Themes From Scratch: Part 6 - Custom Post Types and Taxonomies
VloĹžit
- Äas pĹidĂĄn 30. 07. 2024
- Custom Post Types are one of the most powerful features of any CMS. They go a long way toward helping you manage the data for your websites in a maintainable and sustainable way. To many WordPress users, they can be confusing and intimidating, both in what they do and in how to implement them. In this video, I provide an overview of Custom Post Types and Custom Taxonomies, show several methods to implement them, and wrap up by creating block templates for the Custom Post Type post and archive.
𧰠Resources:
⢠Block Themes From Scratch Series Playlist: ⢠Block Themes From Scra...
⢠www.wp-hasty.com/
⢠wordpress.org/plugins/custom-...
⢠generatewp.com/
⢠wpturbo.dev/
⢠metabox.io/
⢠www.advancedcustomfields.com/
⢠developer.wordpress.org/refer...
⢠developer.wordpress.org/refer...
đ My Websites:
⢠adamlowe.io
⢠peakperformancedigital.com
â Connect with Me:
⢠Facebook: / peakperformancedigital
⢠LinkedIn: / adamshawnlowe
⢠CZcams: / @adamloweio
⢠Twitter: / @adamslowe
âď¸Tools I Use:
⢠WordPress.org: wordpress.org/
⢠Pinegrow Website Editor: pinegrow.com/
â Timestamps:
00:00 Intro
01:56 Examples
05:13 Adding a CPT
06:04 Online Generators
06:37 Plugins
07:26 Generator Overview
08:34 CPT Demo
11:20 Adding CPT To Website
12:08 Creating Taxonomy
14:37 Plugin Method
18:28 Post Template
22:12 Employee Archive Template
24: Outro
Really enjoyed the series. It was very valuable to me. However, I am looking forward to the last video "creating custom blocks" I think without it the series is incomplete. I really appreciate the time you take to create this excellent series. Thank you.
Thanks for the feedback. I've had wrestling with some mobility issues which have delayed the last video a lot more than I expected. I wasn't planning to go in depth on creating custom blocks though, since that's a massive rabbit hole. Instead, I was going to show some options and alternatives such as fully hand-coded blocks, Pinegrow, ACF blocks, block studio, and 3rd party block sets.
Pinegrow is what I use almost all the time. I have a ton of videos about it, so here is a good intro to what it does and how it works.
czcams.com/video/oZRZYaLzEw4/video.htmlsi=6L35tQJyk7ci9NA-
12:06 12:06 â@@AdamLoweIO
Wow. Mind blowing for me. Thanks for all your tutorials â¤
Looking forward to the last video of the series. It has been an excellent series and deserves many more thumbs-up!
Thanks, Bradley. Iâm eager to get it finished and published, too. Itâs just taking a LOT longer than I had hoped.
I just completed watching this series of videos and I want to say THANK YOU! Very informative and easy to follow along. I look forward to the next one in this series.
Glad it was helpful! Iâm trying to get the last video of this series out next week. I am, however, releasing a series all about creating classic themes starting later today. It used to be a paid course, but Iâm opening it up because of the recent news about Cwicly being discontinued. Those should drop pretty quickly, I just need to reorganize them for CZcams and get them uploaded.
@@AdamLoweIO Really looking forward to this new series. I have had Pinegrow PRO with WP for a few years now, but have been really slow in getting started with it.
Will the last video cover custom fields, and getting them to show in the block editor?
I've run into some personal issues and the last video is taking a LOT longer than I had hoped it would, so I'm probably going to pare it down to some essential things and do standalone videos for certain topics like that. Custom fields, in particular, can be tricky since they usually require creating custom blocks or using the new Block Bindings API.
Fantastic content! However, I'm pondering whether it's truly beneficial to invest time in manually creating a theme, only to switch to Pinegrow for crafting custom blocks. Wouldn't it be more efficient to construct the entire Full Site Editing project within platforms like Bricks or Kadence, etc.? While I have a fondness for Pinegrow, the prospect of complicating my workflow doesn't appeal to me...much
The intent isnât really to steer people toward creating blocks using any particular tool. In fact, the next and last video will cover some of the ways to make up for the shortcomings of the core blocks. In my opinion, whenever possible, you should try to use the core blocks. You can extend the blocks to customize them and you can create block patterns that can be easily used in the editor. Creating custom blocks shouldnât be the default go-to option, whether thatâs with Pinegrow, Block Studio, ACF, by hand, or using another tool.
As for using something like Generate Blocks, Kadence, et. al., itâs better to keep them out of the theme and just use them for page content. If something significant changes with the block plugin it could have pretty nasty consequences for your theme. In fact, Iâm pretty sure a lot of block libraries explicitly say they donât support being used as part of a block theme.
@AdamLoweIO In summary, WordPress's evolution into a full-fledged site builder is evident in its expansive feature set, Its ability to cater to a wide range of website needs, with its cost-effectiveness and control over data and SEO will place WordPress as a strong contender in the site-building space, potentially outpacing many traditional site builders in the future. But for now its design capabilities are junk. Don't even have control over breakpoints... Feels like Wp Bakery back in 2010.
Pinegrow should look for another cms to integrate with something like strapi or ghost...
@@AdamLoweIO "itâs better to keep them out of the theme and just use them for page content. If something significant changes with the block plugin it could have pretty nasty consequences for your theme"
Can you elaborate more on this?
PS THANK YOU for this amazing content! I'm brand new to it all, and am wow'ed by the Pinegrow capabilities and your tutorial style.
@@BobbyMcGivneyIf the block plugin changes significantly or becomes obsolete it's a bigger issue in the theme than it is for page content (usually). The main reason why it's different is because of dynamic data. On your pages, most of the content is static. Since regular blocks store their content in the WP database as regular HTML it's not the end of the world if the block gets removed. The front-end still continues to work (even though the block editor shows errors). Dynamic blocks, like you would have in the theme to pull data from various areas on the site, don't work the same way. They have to dynamically render the data each time they are loaded. So if the block goes away, or the way it behaves changes significantly, then the part of the theme that relies on that block will likely break.
Is the video for the custom block to show the custom taxonomies still coming?
It is. Iâve been unable to use my hands for the last few weeks, so that sort of put things on pause. Iâm hoping that this eases up and I can work normally again soon. Voice control and dictation only lets me do so much.
@@AdamLoweIO oh dang. Wishing you the best, and definitely picked up a few workflow tips watching these.
part 7?
I've had wrestling with some mobility issues which have delayed the last video a lot more than I expected. I wasn't planning to go in depth on creating custom blocks though, since that's a massive rabbit hole. Instead, I was going to show some options and alternatives such as fully hand-coded blocks, Pinegrow, ACF blocks, block studio, and 3rd party block sets.
Pinegrow is what I use almost all the time. I have a ton of videos about it, so here is a good intro to what it does and how it works.
czcams.com/video/oZRZYaLzEw4/video.htmlsi=6L35tQJyk7ci9NA-
Things are starting to turn around a bit, so Iâm hoping that I can get part 7 done by mid-July.