Use different post templates for different categories?
-
Hiya! So I’m currently running WP 6.0.3 and using a child theme of the latest version of Twenty Twenty Two (just some CSS changes here and there, and some targeted to a specific category, which is sort of work I’m asking here). The homepage of my site is just a default list of recent posts (of which there aren’t that many, because I’m just getting started).
Is there a way for different post categories to appear differently on the home page, like the CSS hacks I’m using now, but more powerful? Using the blocks editor, basically I want to be able to customise pretty much everything inside of post template in the query loop on the main page, based on post category (I know a post can have multiple categories, but if I apply multiple ones and it stuffs things up, I probably deserve what’s coming). Or some blatantly obvious plugin I’ve somehow overlooked?
- This topic was modified 1 year, 4 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Use different post templates for different categories?’ is closed to new replies.