Nice.. The great thing is, it really doesn't even have to connect to WordPress. It can be a fully stand alone html file. I saw your channel and subscribed.....
@@jherbison Too kind! I haven't posted in a while. Technically I can just add HTML pages directly into the files but the client wants to be able to create their own and they have no coding experience. I like your idea with the plug in but I suppose I'd have to add some custom fields. I'm curious... Without making you feel like tech support lol... how would you approach that?
No problem. As much as I hate to say it, a page builder would be best. I really don’t like them, but that would be the easiest solution. Gutenberg gives some flexibility but not much.
et tu@@jherbison blasphemy! LOL You are right, and the more I think about it...I think the cost of coding up something custom would be pointless when there are off the shelf solutions. I should create a new channel "How to waste a bunch of time as a developer"
Thank's for video. I want to learn do my own unique templates and plugins wordpress. Could you do lessons about development plugins with connection front-end data on template layer and front-end admin data panel layer like an example plugin development
Come on Joshua you are giving away all the goods! Indeed this is very helpful just because you can now work on a plugin to integrate all kinds of functionalities to any site without upsetting the theme, the magic is inside the plugin. It allows you also to have better file organization and structure. It is always great to see your work! I wonder how come you don't use vs code?
BTY I like this JH 2022 version that its posting videos on more regular basis. When I started coding again (I stopped like for 10 years) I will always watch your videos and now here are you again posting again! Great! Congrats! Carry on!
Thank you.. Not a huge fan of anything Microsoft... I do use VS code when I am on my Windows machine, but that is only to update windows software that I have written or if a client wants a windows desktop application (which these days is very rare... Thank GOD!). Sublime Text 3 is very light weight and runs great on my MacBook Pro and My Mac Mini.. All my new videos are done using my Mac Mini. Thank you for watching and commenting..
This is very helpful thanks alot, God bless you more. Is it possible to share your dev setup as I'm getting a MacBook soon and would love to use your setup especially the way u same and files are updated in the browser, cheers 🥂
I don't understand why, but as simple as it seems, turned into a nightmare till I found that my return $template variable had to be unique. Different thant $template. Then things started working. I messed many hours with it, so I hope my comment can help someone, or please, can you give me a comment why it was not working for me? Thanks for your content. Your way of explaining things, is really great.
You need to replace the text to match the post type slug, e.g. add_filter( "theme_page_templates" ) becomes "theme_event_templates" if your custom post type is an "event".
This is very helpful on all sites. We do this even if we built the theme to keep the templates with the plugin.
Saved ton of googling. Thank you!
Awesome! Thank you for watching and commenting.
that was awesome! save me hours of searching.
thank you man, awesome job. ♥
Amazing tutorial! Thank you
You’re welcome. Thank you for watching and commenting.
Very helpful. Thank you!
very useful , tnx
Awesome.. Thank you for watching and commenting.
Thanks for posting this. Perfect timing as well. A client just asked me if I could build them some landing page templates. :D
Nice.. The great thing is, it really doesn't even have to connect to WordPress. It can be a fully stand alone html file. I saw your channel and subscribed.....
@@jherbison Too kind! I haven't posted in a while. Technically I can just add HTML pages directly into the files but the client wants to be able to create their own and they have no coding experience. I like your idea with the plug in but I suppose I'd have to add some custom fields. I'm curious... Without making you feel like tech support lol... how would you approach that?
No problem. As much as I hate to say it, a page builder would be best. I really don’t like them, but that would be the easiest solution. Gutenberg gives some flexibility but not much.
et tu@@jherbison blasphemy! LOL You are right, and the more I think about it...I think the cost of coding up something custom would be pointless when there are off the shelf solutions. I should create a new channel "How to waste a bunch of time as a developer"
I could contribute to that channel for sure! I have spent my fare share of wasting coding time.
Thank's for video. I want to learn do my own unique templates and plugins wordpress. Could you do lessons about development plugins with connection front-end data on template layer and front-end admin data panel layer like an example plugin development
Thank you for commenting.. I have made several videos that I think meet that criteria. Unless I am missing something. More details could help too.
Come on Joshua you are giving away all the goods! Indeed this is very helpful just because you can now work on a plugin to integrate all kinds of functionalities to any site without upsetting the theme, the magic is inside the plugin. It allows you also to have better file organization and structure. It is always great to see your work! I wonder how come you don't use vs code?
BTY I like this JH 2022 version that its posting videos on more regular basis. When I started coding again (I stopped like for 10 years) I will always watch your videos and now here are you again posting again! Great! Congrats! Carry on!
Awesome.. Thank you.
Thank you.. Not a huge fan of anything Microsoft... I do use VS code when I am on my Windows machine, but that is only to update windows software that I have written or if a client wants a windows desktop application (which these days is very rare... Thank GOD!). Sublime Text 3 is very light weight and runs great on my MacBook Pro and My Mac Mini.. All my new videos are done using my Mac Mini. Thank you for watching and commenting..
Thank you!
Thank you ! Merci :)
This is very helpful thanks alot, God bless you more. Is it possible to share your dev setup as I'm getting a MacBook soon and would love to use your setup especially the way u same and files are updated in the browser, cheers 🥂
Thank you. I was thinking about making a video about my setup! I will see if I can get it done tomorrow.
Thanks alot, I would really appreciate it
No problem
I don't understand why, but as simple as it seems, turned into a nightmare till I found that my return $template variable had to be unique. Different thant $template.
Then things started working.
I messed many hours with it, so I hope my comment can help someone, or please, can you give me a comment why it was not working for me?
Thanks for your content. Your way of explaining things, is really great.
How to make this in a block theme. The templates are in html on the theme, in the templates folder. How to add a template via plugin?
Thanks. It works with both pages and posts. But the template is not showing for custom post types.
You need to replace the text to match the post type slug, e.g. add_filter( "theme_page_templates" ) becomes "theme_event_templates" if your custom post type is an "event".