Category and Tag Pages: Simply SolvedJune 13th, 2012 | Posted by in Site Development
So this might still be a bit of a wonky solution by some standards (not mine), but it's the best I've found so far, and I can't think of how this could be a lot better. I've been trying to find a way to create a page that only shows posts for a designated category, and until now, my solution was a plugin that gave you shortcode to create a list of posts by category or tag. It worked, but the CSS was plain and wouldn't match what you had on the rest of your site unless you did a lot of matching up of elements and adapted the existing CSS to cover the material generated by the plugin. The other issue that I had with this solution is that the pages I want are already inherent in a WordPress install. If you have posts categorized, you can click on a given category and it takes you a page that shows only those posts and the CSS matches and everything is great. However, these pages were more of a PHP result than a actual coded page in the sense that I couldn't add it as a page to my template's header navigation or assign it a featured image that would display in my header or anything like that. What I wanted was to create a blank page that I could do that kind of stuff with and would also redirect a user to the URL I wanted when the page was actually visited. At first, I thought that maybe there was some shortcode in WordPress baseline that I could use to achieve this redirect, and for all I know there is. However, while I was looking through a forum thread about redirect shortcode, one of the posters mentioned a plugin called Page Links To. Page Links To allows you to change the permalink for a given page to anything you want; it works for pages, post, and anything else that has a distinct permalink. So using this, I cleared out the shortcode from the other plugin so all I had was a blank page with a title, it was my Comics page, and changed the permalink to end in ?cat=7. When I clicked my Comics banner graphic, it took me right to the WordPress default category page for my Comics category. It was perfect; thanks Mark Jaquith.
You can follow any responses to this entry through the RSS 2.0 You can skip to the end and leave a response. Pinging is currently not allowed.