WordPress.org

Support

Support » Themes and Templates » single.php

single.php

  • I am trying to get the post entry page to pull up a specific page template depending on which category it’s in. Does anyone have any suggestions?
    Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • http://codex.wordpress.org/Category_Templates

    It explains how to set up a page just for that.

    But these are for the category archive page not the pages for the individual posts that fall within that category – or am I missing something?

    because the single post is in a particular category, telling it to use a different template according to the category *should* make it use the same template of the individual post.

    Whups – I just double-checked because I had the same set-up on a blog of mine. This is exactly where I ran into a snag. I can’t quite figure out where or how to tell WP to keep post from category X using Y template, but I bet it involves some snazzy php. 😉

    Sorry!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single.php’ is closed to new replies.