HTML block themes – how to handle dynamic content?
-
Please excuse my ignorance as I’m new to HTML block themes (I’m used to PHP). I want to use them as I see all the advantages, but I seem to be constantly hitting brick walls with pulling dynamic content.
For example, I have an icon, which sits in an HTML block, to link to the post within a query loop. Normally, I’d do something like this:
<div data-post-id="{post_id}">I am trying to avoid using plugins and custom javascript but I’m finding HTML blocks restrictive outside of the usual WP blocks. I’m using twentytwentyfour as my parent theme.
Is there a standard practice to handle this kind of thing? Should I be building my own custom block?
You must be logged in to reply to this topic.