I’ve been using in our site for a while now custom rewrites that allows us to “filter” content. e.g.: http://www.domain.com/category/filter-id/
Things have veen working extremely well until I updated worpdress to 3.1. It seems that all of the custom rewrites for categories do not work now. We have a few filters for some pages and those still work.
Here is a sample code of what I’m using:
$newrules[‘(‘.$category_nicename.’)/(‘.$filter_name.’)-(‘.$filter_id.’)/?$’] = ‘index.php?category_name=$matches&ss_filter=$matches&filter_id=$matches’;
So up until 3.1, everything worked. I am flushing the rules and adding the new variables to the query_var filter as well. See below
add_filter(‘rewrite_rules_array’,’ss_rewrite_rules_array’); Where I’m adding the new rules
add_filter(‘query_vars’,’ss_query_vars’); Adding the new vars (ss_filter and filter_id)
add_filter(‘admin_init’,’ss_flushRules’); Flushing rules when going to admin area.
I’ve searched around and seems a few more people are having the same issue.
Anyone with advise is greatly appreciated.
- The topic ‘Custom Rewrite Rules stopped working with 3.1’ is closed to new replies.