Frustrations with Tagging

As some of you may have noticed, I finally got around to implementing tagging a while ago, via the Simple Tagging plug-in. The categories in the sidebar are more like a table of contents, and the tags work more like the index at the back of a book. Generally, I’m very happy with the tags; I love having the list of related posts show up on the single view, and the Tag Cloud on the archive page makes it easy to find posts by specific topic.

My only problems are minor formatting issues, really. I want the Tag View page (the page you go to when you click a tag) to display just like it displays all the other archived entries. It does, mostly; I’ve made it use the same template that I use to display archived entries. The only problem is in the number of posts it displays at a time. I installed the Custom Posts Per Page plug-in ages ago, to dictate how many posts show up on given page views. On the home page, it is supposed to show 4 posts. On the daily view, monthly view, and search result pages, it’s supposed to show no more than 10 posts per page, and for all other views it’s supposed to show 999 posts. For whatever reason, the tag view page thinks it’s the home page, and displays only 4 posts.

The other minor bug relates to the footer. The 5 most recent posts and 5 most recent comments show up at the bottom of the page; on the tag view pages, the 5 most recent posts for that tag are displayed instead. The 5 most recent comments show up correctly, though.

I suspect the quirks may be related, but I don’t know for certain. My reasoning is that since WordPress thinks the Tag View is the home page (as the query property comes up true when I check if it’s the Home view), it’s using that same query to get the 5 most recent posts. I can create a workaround for displaying the proper number of posts on a tag view page, but I’ve exhausted most of my ideas for fixing the Recent Posts in the footer. Any ideas out there?

Leave a Reply

Your email address will not be published. Required fields are marked *