How can I edit static HTML in post.php from the page editor?
-
I am trying to make a website for someone with no coding experience.
I want to make a post template for a “weekly newspaper” post which has only one “block” which is a preview of the pdf newspaper block. The site owner should create a new post simply without interacting with the HTML/ adding blocks and the template (Just to create a new post and set the PDF source).
I though to use a custom post type, but I have no idea how to let the owner to change the PDF file source instead of being hard-coded.
Is it a common / recommended solution to use the post content to store the pdf source, and then the post owner should just paste the pdf source location/identifier etc., in the post content, and in the
post.php
I would create an hard coded pdf block with dynamic source from theget_content()
?Is there a better way to achieve what I want?
Thanks in advance!
- The topic ‘How can I edit static HTML in post.php from the page editor?’ is closed to new replies.