Post formats to different single.php
-
Hello a question,
I found this about Post Formats..
WP BeginnerThe only problem i face right now is, i don’t wanna style a little bit by CSS but i want to entirely build different layouts for the blogposts written in Gallery, Aside and others.
So what i would like to have is this:
All posts written in Gallery post format go to –> single-gallery.php
All posts written in Aside post format go to —> single-aside.php
All posts written in Basic post format go to –> single.phpWill this be possible?
I did it before giving blog-posts some different single template by picking it from they’re category-ID.
single-7.php and all blog-posts written inside that category 7 would be viewed inside single-7.phpBut for this project i have no control about how many category’s will be made .. so thats why i would like to do it by picking from post formats.
Any body an idea?
Thanks.
- The topic ‘Post formats to different single.php’ is closed to new replies.