Disclaimer: I don't know PHP! That being said, link to the code.
Basically, for my categories, I tried to simplify it by, instead of making an individual page for each category (ie, category-1.php, category-2.php, etc), I used a lot of if and elseif statements to check for the current category, and to display the corresponding posts.
- I have one div, that displays 1 "featured" post. This works correctly.
- The second div checks the first post, to make sure it doesn't duplicate, and then is supposed to display 5 thumbnails that link to the post. It doesn't. It only displays 4.
(That's why category one has "posts_per_page=6". I played around with the code and found out that it displays one less than it has to.)
- The third div also checks for duplicates, and displays correctly (probably because I didn't have posts_per_page).
The thing that kills me is that the home page, which is basically the same code sans the if and elseif statements, works just fine. So.. Could someone show me where I went wrong?
Please and thank you!