I have a gallery that shows 9 thumbnails per page, and is often paginated. In instances where there is a filter passed to the query, I am having the page shift down to a named anchor (#togallery) so that the user sees the content rather than all the header stuff.
No problems there, except that when it paginates (using next_posts_link) the anchor does not carry over, and I'd like it to, if possible.
Does anyone have any ideas about how to achieve this? I'd be grateful for any pointers.