• 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 the get_content()?

    Is there a better way to achieve what I want?

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Is there a better way to achieve what I want?

    I use this amazing plugin called “IssueM” to manage issue-based publications for clients.

    Individual stories are published as posts (the plugin’s own custom post type), and a collection of these posts may be linked together as a single “Issue”. The plugin generates a newspaper cover image for every Issue, along with a downloadable PDF of the issue.

    There are also extensions to add a paywall, flipbook-like browser of the PDF file, advanced search of issue archives, use of standard posts (rather than the plugin’s custom post type), etc.

    Please check it out to see if meets your publication needs, instead of rolling out a custom solution: https://www.ads-software.com/plugins/issuem/

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘How can I edit static HTML in post.php from the page editor?’ is closed to new replies.