WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently creating a website that's going to be powered by Wordpress and have both a portfolio and a blog.

How should I go about coding up the single.php?

I understand custom post types are the way to go when it comes to a portfolio+blog setup, but when it comes to displaying the post/portfolio item in its entirety, is there such a thing as multiple single.php files?

Thanks in advance!

share|improve this question
up vote 2 down vote accepted

Have a look at the template hierarchy page. Custom post types will use single-{post_type}.php template if it exists.

share|improve this answer
Thank you, I came across this page before but wasn't sure whether this was what I wanted. I'll go ahead and educate myself on the subject. – Krimo Jan 3 '12 at 7:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.