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 How to Make a Website with WordPress Custom Post Types and Fields in WordPress Custom Post Type Templates

single-art.php dose not work?

when i pick the art template and publish it, it works and i can see all my arts, but when i click one of the art, it just display the 404 error page

1 Answer

Jeremy Frimond
Jeremy Frimond
14,470 Points

Hard to say without seeing any code, but sometimes you just need to reset the permalinks to get the single pages going.

Go to settings, click on permalinks, reselect your desired permalink, save settings then try clicking through your links to single-art again.

Hopefully that can fix it, otherwise I would need to see the code.

it works, thanks :))