Suffusion – Sayontan need your help
-
Sayontan, I’ve tried to create a login to the aquoid forum but it’s not working.
I just updated to Suffusion 4.2 and have run into an issue.
I had been using this code snippet in my functions.php and it was working wonderfully with the previous version of Suffusion.
/* disable posts from child categories in main query */ add_filter('pre_get_posts','custom_csp_pre_get_posts',20,1); function custom_csp_pre_get_posts($query) { if(function_exists('is_main_query')) { if($query->is_category && !$query->is_admin && !$query->is_preview && $query->is_main_query() && false == $query->query_vars['suppress_filters']) { $cat = get_term_by( 'slug', $query->query_vars['category_name'], 'category'); $query->set('category__in',$cat->term_id); } } return $query ; }
Updating to 4.2 and then including the above code causes the site to break.
Any thoughts?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Suffusion – Sayontan need your help’ is closed to new replies.