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 trialJeremy Frimond
14,470 Pointsclick taking me to index.php not single-work.php
Zac Gordon I am following along and have set up the custom post type of work. Everything is working fine except when I click on the permalink on the custom post type => work permalink I am being taken to the index.php file not the single-work.php file.
I have taken the page.php loop and pasted it into the single-work.php file and still getting sent to the index.php page.
Any ideas what I am doing here?
2 Answers
Nick Ocampo
15,661 PointsYou should be using the_permalink() inside your query loop. Can you post the code for the page where you should have a link to sing-work.php?
Jeremy Frimond
14,470 PointsHI nick, I figured it out. stupid mistake. Thanks.