Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.