In Joomla! articles can use multiple templates. I could only put ath the end of url ?template=templatename and article uses the template “templatename”.
Is this possible in WordPress?
In Joomla! articles can use multiple templates. I could only put ath the end of url ?template=templatename and article uses the template “templatename”.
Is this possible in WordPress?
Comments are closed.
Yes it is. But no by default.
But it’s pretty easy to do it yourself.
You can do it in 2 ways:
1. In
single.php
template fileJust add
if
statement and useget_template_part
function to load selected template.So your single.php file could look like this:
2. Using
single_template
hook.