2952 posts
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 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
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 1 and 9 items
Bluz says

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

1148 posts
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
  • United States
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.

3422 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark Volunteer 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
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 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
  • Attended a Community Meetup
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+5 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
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Exclusive Author
  • Referred between 200 and 499 users
  • Bought between 1 and 9 items
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
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Beta Tester
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says
1799 posts
  • Has been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Envato Studio (Microlancer) Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
BroOf says

@WPwpCanyonThemes

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

by
by
by
by
by
by