Skip to content

Building a Dynamic Block for WP List Categories function in WordPress

Jun 2024·22:48·1,057 views·Matt Knighton

Walkthrough Overview

About This Video Guide

In this video I show you a Dynamic Block for listing WP Categories in any registered taxonomy on your WordPress website.

Summary
The video script explains how to create a custom block for listing categories in WordPress using PHP functions within the block editor.

Github reference: https://github.com/MRKWP/wp_list_categories

Highlights
* Building a custom block for listing categories in WordPress 🛠️
* Using PHP functions within the block editor to create custom blocks 🖥️
* Explaining the process of registering and rendering the custom block ⚙️
* Demonstrating the use of attributes and controls in the block editor 🎛️
* Showcasing the flexibility of adding additional features to the custom block 💡
* Providing insights on debugging and testing custom blocks for functionality 🧪
* Encouraging viewers to experiment with creating their own custom blocks in WordPress 🧩
Key Insights
* The video showcases the step-by-step process of creating a custom block for listing categories in WordPress, offering valuable insights into using PHP functions effectively within the block editor. 📝
By explaining the registration, rendering, and customization of attributes in the custom block, viewers gain a comprehensive understanding of the technical aspects involved in developing a functional block. 🔍
* The demonstration of controls, such as text fields, toggles, and select dropdowns, highlights the versatility of custom blocks and the ability to tailor them to specific requirements. 🎨
* The emphasis on debugging and testing custom blocks underscores the importance of ensuring functionality and troubleshooting any issues that may arise during the development process. 🔧
Encouraging viewers to experiment with creating their own custom blocks fosters a hands-on approach to learning and inspires creativity in leveraging WordPress’s block editor capabilities. 🌟

For more help like this check out my website: https://www.mrkwp.com

Read the articleDynamic Blocks for Junior Devs

Core Focus Areas

  • 1Practical, production-tested techniques tailored for WordPress and modern tooling.
  • 2Stripping away fragile dependencies so your site stays fast and resilient.
  • 3Workflows structured so your internal team can maintain and own them long-term.

More Practical Walkthroughs

Explore step-by-step video tutorials and technical walkthroughs.

View all videos ↗
Using Gemini Nano Banana to Match a colour profile without degredation.
4:31
Apr 2026 · 38 views

Using Gemini Nano Banana to Match a colour profile without degredation.

4:31Watch Video
Fix ChatGPT Emoji not saving in WordPress
3:22
Mar 2025 · 510 views

Fix ChatGPT Emoji not saving in WordPress

3:22Watch Video
Have Multiple Sidebars in WordPress with Elements and Kadence Pro
8:27
Feb 2025 · 555 views

Have Multiple Sidebars in WordPress with Elements and Kadence Pro

8:27Watch Video

Let’s figure it out together

You don’t have to build alone.

A little guidance. A good conversation. A better next step.

Work with me

Start with a 20-minute call. I read every enquiry myself.