• Resolved supernovab

    (@supernovab)


    We regularly have very similar “event” posts, example linked. I am using 2022 theme, and the template is “single post (no separators)”. To try and speed things up for new events, I have created a new custom post template “event” with paragraphs, image, and tab block (Kadence) with some text already in place.
    When I create a new post and select the “event” template, there is only one paragraph showing in the editor. If I enter some text then go to preview, all the custom template information appears, but I clearly I can’t edit it there. Am I doing something fundamentally wrong?

    • This topic was modified 2 years, 11 months ago by supernovab.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Your custom theme template is working exactly as a WordPress theme template is meant to work. The template is used to render what you put into the post editor. But the template itself is not editable in the post editor.

    As you need to edit this “template” for every post (event), a custom theme template is not what you need.

    A better out-of-the-box solution would be the “Reusable Block” feature: you create a block or group of blocks with all the presets you need and save it as a Reusable Block. Then for every new post (event), you insert this Reusable Block and customize it.

    One caveat with the Reusable Block feature is, by default, editing a Reusable Block will edit ALL posts where you inserted this particular Reusable Block. But there’s an easy solution to that: after inserting the Reusable Block you want to use, make sure to select “Convert to Regular Block” option and your changes will affect that particular post (event) only.

    Good luck!

    Synced Patterns (Reusable Blocks)

    Thread Starter supernovab

    (@supernovab)

    Thank you George, that’s really helpful; I suspected I was going about it the wrong way.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Template content’ is closed to new replies.