Welcome to the Treehouse Community
Looking to learn something new?
Ben Os20,008 Points
I think I did everything Alena showed in this video but I can't filter items by category
In this video we filter our items by categories based on the section variable values associated with each page (books page, videos pages, music page, etc).
I encounter 2 problems:
The categories don't work, moreover, the pages are empty from items.
The music page has an error "unidentified variable - pagetitle"; This is wired as I just tried to put it's H1 similar to the default pagetitle.
Here is my site:
Here is a snapshot:
To address your page title variable, you have a double equals sign on top of you catalog.php when you are assigning the value to the $pagetitle variable, so I'd start with putting a single equals sign for
$pagetitle = "music";