How can I create a new Post-Template?

Posted in: Newspaper
Post count: 1

Hello,
I wanna use the plugin https://www.advancedcustomfields.com/ to create meta fields for my Blogposts. The meta fields should be inserted into one template. Then I can fill out all meta fields for all of my 300 blog posts and I’m able to change the blog layout without clicking into every single post to import a new template.

And here is the problem:
My first idea was to create a “Cloud Template”. After working with it I found out that the templates don’t fit my needs. So I decided to create my own hard-coded post template to fit my needs perfectly.
I already duplicated the “loop-single-13.php” and “single_template_13.php”, changed all require_once(‘loop-single-13.php’); functions and also added a “single_template_14.png” as an image.

But somehow the new Post Template doesn’t appear in the backend of WordPress. What did I forget?

I hope somebody can help me.

Kind regards
Elian

Post count: 27744

Hello,

If I understand correctly, you have done changes in the files for Single Post Template 13, if these changes were made in the theme files (not in the child theme) then simply selecting that template for the post should show the changes.
Please don’t change the name of the single post template in a file that does not exist, for example, single_template_14 (this will not appears in the post template options).
I would recommend that you save the changes in a child theme so that they will not be lost after an update of the theme.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.