[resolved] specified category use specified single page (2 posts)

  1. Tunghsiao Liu
    Posted 8 years ago #

    hi all,

    suppose that i have two parent categories: 'Artworks' and 'Blog'

    it's well known that when i open a post, wordpress will use single.php to display it, but i want to make it like this: when i opened a post filed in 'Blog' category or in its child category, wordpress could use single-blog.php for it

    and when opened a post in 'Artworks' or its child category, it could use single-artwork.php

    anyone knows how to code it? or any plugin? thanks!

  2. Tunghsiao Liu
    Posted 8 years ago #

    i found it here:


    hope someone would help, too

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.