Greetings boys and girls;
An install I'm working on is using current_page_item to style a list of pages as a navigation menu, as seems pretty standard. The site uses a 'normal' front page (i.e. a list of recent posts, no special static frontpage selected).
However, there's a problem - two of those pages are using custom page templates, and when those templates are used, current_page_item isn't passed. I thought it might be the second loop running after the page content loop causing the problem, but dummy versions minus the second loop still cause the same issue. Using the standard page template, current_page_item seems to work fine.
Has anyone else encountered this little issue, and - more importantly - does anyone know a way around it? I've found hacks for similar problems caused by static front pages, but a) they're messy, and b) they don't address this problem, which seems to be simpler in origin (though I may be mistaken on that point, of course).
Any suggestions?