2017-08-22, 05:33:41
Hi Carlos and everyone else,
Is it possible to have different template files for different kinds of posts, as per:
single templateFile template-blog-post.php
But perhaps determined by tag, so for example, for image based posts I'd like to use one kind of template, for text based posts another. So I'd like to have a tag "image" and a tag "text" and depending which tag the post has, a different template file is used.
Something like this in custom settings?
single templateFile tag="text" template-blog-post-text.php
single templateFile tag="image" template-blog-post-image.php
Is this possible currently?
I'm not bothered about method (as per above), just whether this can be done at present.
Many thanks,
C.
Is it possible to have different template files for different kinds of posts, as per:
single templateFile template-blog-post.php
But perhaps determined by tag, so for example, for image based posts I'd like to use one kind of template, for text based posts another. So I'd like to have a tag "image" and a tag "text" and depending which tag the post has, a different template file is used.
Something like this in custom settings?
single templateFile tag="text" template-blog-post-text.php
single templateFile tag="image" template-blog-post-image.php
Is this possible currently?
I'm not bothered about method (as per above), just whether this can be done at present.
Many thanks,
C.