LondonTiger
Member
Posted 1 year ago #
Is there anyway to to jump straight to posts rather than categories?
In the theme I'm using I have some css dropdown menus, and under a category I have 8 different subctaegory, and each sub category has a single post.
I've found a solution here http://wordpress.org/support/topic/if-post-count-1-use-template-singlephp?replies=7
But it didn't work for me.
Perhaps there is a plugin that can make posts appear as subcategories as a workaround to this.
If the categories will always have only one post, and that post will always be the same as it is now, you could use this plugin to redirect the category-page-URL for each category to the single-post-URL of its post. However the URL's have to be hard-coded into the plugin's admin page.
http://wordpress.org/extend/plugins/category-redirect-to-post-or-page/
LondonTiger
Member
Posted 1 year ago #
that's fine, I've hand coded so many elements of my site, it's starting to no longer resemble a CMS :)
I always intend to have 1 post per category, it's not really a blog, more of a review website.
I'll give this a try and let you know how it goes, thanks!
p.s. would it be more efficient on my shared hosting account to do this via htaccess than another plugin? do plugins create a draw on system resources?
I don't know if there is a definitive answer on plugin vs htaccess. Most plugins don't seem to add a lot of overhead. Of course it varies depending on how complex one plugin is. The one I suggested is not complicated. Your best bet is try it and see if it accomplishes what you want. Then you can deactivate it and try htaccess and see if there is a noticeable difference. Keep in mind WordPress itself is loading 50 or more PHP files on every page load, so one or two more are not so significant
LondonTiger
Member
Posted 1 year ago #
Thanks for the response.
I have 20+ plugins installed, and I think the more I have installed the more room I leave for bugs to occur during upgrades. So I decided against the plugin.
I figured if I'm going to hard code stuff into the plugin to get it to work, then I'd rather hard code into htaccess. It's a lot simpler