While working on my Gutenberg Development Course, one of the hardest things I found to research was how to add block templates to your WordPress theme or plugin. Block templates are a way to have certain blocks show up by default for a new post, page or custom post type. You can also "lock" the template to … Continue reading How to Add Block Templates to Your WordPress Theme or Plugin
While customizing LearnDash I came across an issue in the topic.php file where the $lesson_post variable was returning null even when there was a parent lesson for the topic. So, after digging around at the LearnDash source code a bit I came up with this simple solution to grab the lesson whenever I needed using the topic post which … Continue reading Get Lesson Object for a Topic in LearnDash
I recently came across a great shortcode that I wanted to embed directly into a template, rather than use as a shortcode from within the admin area. If you ever need to do this you can use the do_shortcode function, and pass any necessary parameters as you would need. <?php echo do_shortcode('[shortcode with="parameters"]'); ?>
Swift templates is a way to use a simple templating language to create custom templates from within the admin area, and even the Publish page. I suppose for the right client and use case it would be helpful, but for the type of work I do creating simple sites for clients, it doesn't really apply. … Continue reading I’m Curious to See How Swift Templates Work in the Real World with Clients
This is something that came up as an issue during my How to Build a WordPress Theme project for Treehouse. I found Chip Bennet had a pretty good explanation on his blog.
WP Beginner recently published a tutorial showing how to create a custom archives page. I really support the idea of breaking the mold from traditional WordPress archive page layouts.
If you're building an admin settings page for a plugin, you should check out this plugin to get easy, copy and paste code to create all the WordPress default layouts and markup. Thanks Frank for making it so easy!
Looking forward to implementing some of these tips in my next plugin project! Thanks Remi 🙂 Link: Plugin Templating within WordPress