• I feel like I’m not the first person to ask this but I’ve been trying to figure out a solution to this for several days and haven’t found a good one yet. Is there any way to keep my html (block editor) templates but allow each template to have dynamic data based on the category? I’m using taxonomies to make a custom category for “seasons” which will have episode posts in it. I would love to just have one template that’s “taxonomy-seasons.html” that has a query loop for that specific taxonomy term on each page (e.g. season 1 has a query loop for all posts with taxonomy “season 1”). Similarly, I would like the page name to also follow suit, having a heading or something along the lines of “Episodes for Season x.”

    Is this possible with the block editor and maybe a custom block variation or something?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If existing blocks do not offer the functionality you want, it’s possible to develop a custom block that does exactly what you want. Block development is covered in the Block Editor Handbook, you’ll specifically be interested in the section on dynamic rendering.

    The way this was accomplished before the block editor was with shortcodes. Shortcodes are still supported and remain an option if you’re mainly comfortable only with PHP coding.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.