I’m trying to change a piece of HTML on my index.php based on category.
Basically, I have 5 categories: body, mind, work, art, thoughts. And I want an specific div inside my loop to change according to post.
If the post is in the body category, the HTML I want it to display is:
I’ve researched in the foruns, but I’m not a developer, and I’m not making progress.
Can anybody help me? Thanks. 🙂
- The topic ‘Display HTML based on category’ is closed to new replies.