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 Build a WordPress Plugin Connecting WordPress Plugins with 3rd Party APIs Parsing JSON with PHP: Part 2

S Ananda
S Ananda
9,474 Points

Has url for this exercise changed?

I coded everything exactly as Zac did and didn't get the same kind of page that he did. I got an intro page for the entire course for both the course title and the module title, the same page for either link. When I went into the JSON and clicked the respective links they took me to the same intro page, as well.

So, I'm assuming the urls no longer go to individual pages for the courses and modules like they did back when this video was recorded. Again, something in the teacher's notes would be very helpful.

1 Answer

Sean T. Unwin
Sean T. Unwin
28,690 Points

This does appear to be the case.

For example, if we pause the video @ 3:01 we see the URL of the link as "teamtreehouse.com/library/websites/html/introduction" (bottom left hand corner of Zac's browser). However, when we go to that link in our browser the URL redirects to "teamtreehouse.com/library/html#introduction".

Notice the rewrite of the final slash to a hash. It now points to an HTML tag ID which, as you have discovered, is still on the course intro page.

Although, also note that the page is auto-scrolled to that ID. So, technically, the code is working, but the link is not it's own individual page anymore.

S Ananda
S Ananda
9,474 Points

Thanks, that helps to confirm my findings. Since I am fairly new at coding I like to pass something like this on to someone more experienced. That way I know I just haven't messed up with the coding.