Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Konrad Pilch
Konrad Pilch
2,435 Points

How to use custome post types with single.php?

I have custom post types services and i have a page single-services.php, which works, but , it displays my recent post i posted, how do i make so when i click the right one, it gets to the right post? not the lastest post added.

1 Answer

Shai Yahav
Shai Yahav
7,153 Points

Please copy and paste single-service.php code

Konrad Pilch
Konrad Pilch
2,435 Points

I figured it out, thank you :)

I asked like 4times here on treehouse and didn't get any answer even with the code, i just knew that i had WP-Query and i was doing or quering it wrong.. now i get it.

Thanks :)