Tagged: acf, archives, CPT, fields, WP Templates
-
AuthorPosts
-
August 31, 2023 at 6:20 am #1417645
Good day, everyone!
While I wait to get some sort of support for ACF, I have been trying to manually map in custom post types, fields and taxonomies. But, after doing all of the work on building templates, I just realized the old select Template drop-down does not seem o appear in post, or any post type in the edit post option. I reverted back my templates, thinking maybe I screwed them up, but I still do not have the option to select any of them.
Am I missing something obvious?
I have copied files from the Enfold core theme files into the child theme folder (see private content)
I have also looked around on the net and tried the various other suggestions I could find, but nothing seems to get that drop-down back.
September 1, 2023 at 12:18 pm #1417802Hey Jason,
Thank you for the inquiry.
Are you using the block editor? Please note that the Templates dropdown is now available in the Summary panel right after the Publish date. The dropdown is no longer included in the Page Attributes panel.
Best regards,
IsmaelSeptember 1, 2023 at 4:35 pm #1417841Good day, Ismael.
I generally turn off the block editor, as it confuses people and I would rather have them learn Avia through the Classic editor, so they gain the benefits of Enfold.Is the Block editor the only way we are able to switch templates at all?
September 1, 2023 at 5:44 pm #1417844Okay, so I think I might have figured it out, and hopefully this can be of benefit to others as well.
I ran across this article from WordPress:
To sum it up, the template files need to be in the Child Theme directory, using the WordPress/Enfold default templates as basis starting points.
But, you need to add the following lines at the top (right below the first if switch that follows the open php tag.
/*
Template Name: Full-width layout (Rename to appropriate template name)
Template Post Type: post, page, (insert your new cpts here)
*/Remainder of template follows, but that will finally add the Post Attributes meta box to the right side of the screen.
Can something similar/related-to to this be added to the Enfold Docs?
September 4, 2023 at 10:11 am #1418018Hi Jason,
Thanks for sharing your solution.
We added this to our docs at https://kriesi.at/documentation/enfold/personalize-theme/#custom-templates-for-custom-post-types.
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.