creating a single template file for a category?
-
i have a blog with 2 categories, 1- movie 2-music
for each of their post i have many custom files added.buy i want to be able to create a single.php file for each of my category like this single-movie.php single-music.php so that when a user goes to the post see’s the custom filed related to the category.
for example the custom files DIRECTOR should not appear in a music post and viceversa a SINGER custom filed value should not appear in a movie post. as a had a look to the hierarchical template for wordpress 3 i could not find a way for it. just like the seperate template whic i can make for my category i want the single template to be seperated file too.or maybe if it’s not possible to do so i want the custom field to be like on and off. for example if i have a music post i let the DIRECTOR custom field empty, so there should be a way that the custom file DIRECTOR does not show up in the posts that the value is not entered.
i hope somebody find me a way to have both my category and single template files seperated !!!
- The topic ‘creating a single template file for a category?’ is closed to new replies.