2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Ok I have my portfolio custom post set up .. and I created a custom template to show them so everything is ok for now.

But if I click on the post title, it lead to the single.php template .. like my normal post do but I don’t want to .. I want them to have their own single page …

How do I do that? :)

Just for an exemple, on Classica : http://themes.premiumpixels.com/classica/portfolio/

If you click on the title of the portfolio post, it lead to a different page than blog post page.

Thanks! Dany

562 posts You Reap What You Saw
  • Has referred 200+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
Bluz says

I think you only need to create a file called “single-posttypename.php” and style it to your needs.

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
fillerspace says

http://codex.wordpress.org/Post_Types has what you’re looking for

In the same way that posts are shown on their own page with single.php, custom post types will use single-{posttype}.php if it’s available.

So for the above example, you could create a single-acme_product.php file and the product posts would be shown using that template.

3468 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark Moderator says

I think you can just create a template named single-portfolio.php (assuming your custom post type is portfolio). See this for more info: http://codex.wordpress.org/Template_Hierarchy#Single_Post_display

Hope that helps :)

EDIT : That was some amazing response time, guys :P

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Hey guys, I tried it already and it didnt seemed to worked. Will give it a second try and I’ll let you know if it worked.

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Oh! I’m stupid :)

I wrote single-portfolioposts.php instead of single-portfolio_posts.php :)

Thanks a lot guys!

562 posts You Reap What You Saw
  • Has referred 200+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
Bluz says

Great to hear Danny! Related question, does this also work for the archives template? For example “archive-portfolio_posts.php”?

EDIT : Sorry just checked in the codex and yes, it works the same way. :)

3256 posts
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
ParkerAndKent says

Great to hear Danny! Related question, does this also work for the archives template? For example “archive-portfolio_posts.php”?

Yes, with wp 3.1

The bad thing is that there is no way to easily link to a custom archive from the wp menu… the only way is to create a link manually: site.com/?post_type=slug

This to use the built in custom archives, I’m not talking about “page templates that act like custom post archives”.

1383 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
wpCanyonThemes says
1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf says

@WPwpCanyonThemes

Great found! Thank you! I really searched for something like this! tytytyty!

by
by
by
by
by
by