Category / Subdomain not filtering correctly

Bug #400511 reported by Sam Hansen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wordpress Subdomains Plugin
New
Undecided
Unassigned
Nominated for 0.6 by LaMi
Nominated for Trunk by LaMi

Bug Description

I have installed the plugin and got the subdomains working but each time I try and load a category/subdomain it is showing ALL the posts instead of filtering out only those with apply to that category.

ie. http://www.healthybodyreport.com

Revision history for this message
LaMi (lars-vertical-visions) wrote :

This also affects me. I'm sure the way I did it is not the cleanest way to implement filtering of the posts but I got it fixed patching the code as follows:

--- plugin/actions.php.orig 2009-08-27 05:37:31.000000000 +0200
+++ plugin/actions.php 2009-12-10 23:38:21.000000000 +0100
@@ -171,6 +171,11 @@
                        $query->is_archive = false;
                }
        }
+
+ $cat = $wps_this_subdomain->slug;
+ if($cat != '') {
+ set_query_var('cat', get_category_by_slug($cat)->term_id);
+ }
 }

 function wps_action_page_meta ($type, $place, $post) {

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.