Dynamic render templates
-
Hi there,
What is best practice to load the corresponding template for each flexible layout?
I don’t wan’t to place the path to the template in the plugin settings. I would like to place those via the theme or plugin.
In your documentation is explained that you can use the filter ‘filter(‘acfe/flexible/render/template’. But if you have like 20 or more layouts, you would need to create 20 separate functions where each function is pointing to the location of one template. That sounds a bit overkill.
Is there a way to load every corresponding layout template from within one file?
For example i use the filter ‘acfe/flexible/enqueue/name=sections’ to enqueue one stylesheet for all layouts in admin.
- The topic ‘Dynamic render templates’ is closed to new replies.