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 new in Wordpress and I'm currently building my personal website where my works will be published and have a blog too. For the portfolio layout I've looked up this tutorial:


It gives me what I want, more or less. The point is that when I enter on a specific project, the look of it changes a little bit. The file single.php is working right? But doesn't this means that the blog posts will have the exactly the same layout than the project details? I mean, if I edit that file I'm doing it for both blog posts and project details right?

How can I make it to look different?

Best Regards, Tiago Castro

share|improve this question
up vote 1 down vote accepted

Install the Custom Post Template plugin and create different templates for your project pages. This works like page templates.

You may also consider a custom post type for your projects to use different taxonomies, meta data and templates.

share|improve this answer

Well, yes if you edit single.php thats impact will be global across the site, to over come from this WordPress provides you elegant way called layout heirarchy for your post type portfolio you can use different single.php. Dont edit single create one more file called single-postytype.php for portfolio type it will be single-portfolio.php so that it loads only for portfolio post type, if you wanna have specific layout for blog post then it will be single-post.php Have a look at this hierarchy you may get idea http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

share|improve this answer

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.