How to add post_meta to a block theme html file?
-
Hi
I’m creating a block theme and have added a custom meta box to my admin page so the user can hide the Page Title.
Since the template files are now HTML (index.html etc), what is the correct way to do this?
So the page title is output in this manner
<!-- wp:post-title {"isLink":true,"align":"wide"} /-->
so that means I need to get the post_meta value and then surround this in an IF statement.Should i just convert this to a PHP file and do it that way or is there a ‘proper’ way to do this?
Thanks in advance
Ryan
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add post_meta to a block theme html file?’ is closed to new replies.