WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Tunghsiao Liu
    Member
    Posted 6 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
    Member
    Posted 6 years ago #

    i found it here:

    http://codex.wordpress.org/Theme_Development#Query-based_Templates

    hope someone would help, too

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.