how to switching templates within theme that uses get_template_part
-
I developed a plugin that creates template files from a form composing the pieces of the template with drag and drop interface.
To create the files template i copy the file (single.php or content-single.php) and modify it and saved with a new name in my plugin directory.
From the the post creation page i choose (from a meta box that read my metadata from a table db)witch template i need for my post and then i make template _include to load the selected template.
Every thing works fine with themes that use single.php like template, but i cant’t figure how to load the template file when the theme uses get_template_part to load the content!!
anyone can help me to understand how to do that.
thanks in advance.
- The topic ‘how to switching templates within theme that uses get_template_part’ is closed to new replies.