Dynamic data (based on slug) in blocks templates
-
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?
- You must be logged in to reply to this topic.