Plugin Directory

Changeset 624028


Ignore:
Timestamp:
11/12/2012 01:19:26 PM (12 years ago)
Author:
ajayver
Message:

Fixed wp_query modifying
Added permalink support
New stable version

Location:
cat-tag-filter-widget
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cat-tag-filter-widget/tags/0.9/cat-tag-filter.php

    r619017 r624028  
    108108        endwhile;
    109109        endif;
     110        wp_reset_query();
    110111        if (isset($all_tag_ids)){
    111112       
     
    236237
    237238  static function install() {
    238         //Ensure the $wp_rewrite global is loaded
    239         global $wp_rewrite;
    240         //Call flush_rules() as a method of the $wp_rewrite object
    241         $wp_rewrite->flush_rules();
     239        flush_rewrite_rules();
    242240     }
    243241
     
    293291    $instance['category_tax'] = $new_instance['category_tax'];
    294292    $instance['tag_tax'] = $new_instance['tag_tax'];
    295     global $wp_rewrite;
    296     //Call flush_rules() as a method of the $wp_rewrite object
    297     $wp_rewrite->flush_rules();
     293    flush_rewrite_rules();
    298294    return $instance;
    299295  }
  • cat-tag-filter-widget/tags/0.9/readme.txt

    r619017 r624028  
    2121
    22221. Go to your Wordpress admin dashboard -> Plugins -> Add new, then search for **Cat + Tag Fliter** and agree to install it.
     232. Go to youк widget options and change the widgets settings.
     243. Sometimes it is needed to manually flush rewrite rules. Go to your Permalinks Options and change it to something else, save, and then change it back to normal.
    2325
    2426If it didn't work, try this:
     
    7476== Changelog ==
    7577
     78= 0.9 =
     79* Added permalinks support. If it doesn't work - flush rewrite rules!
     80
    7681= 0.8.4 =
    7782* Added an option to switch off corresponding tags mode.
  • cat-tag-filter-widget/trunk/cat-tag-filter.php

    r619017 r624028  
    108108        endwhile;
    109109        endif;
     110        wp_reset_query();
    110111        if (isset($all_tag_ids)){
    111112       
     
    236237
    237238  static function install() {
    238         //Ensure the $wp_rewrite global is loaded
    239         global $wp_rewrite;
    240         //Call flush_rules() as a method of the $wp_rewrite object
    241         $wp_rewrite->flush_rules();
     239        flush_rewrite_rules();
    242240     }
    243241
     
    293291    $instance['category_tax'] = $new_instance['category_tax'];
    294292    $instance['tag_tax'] = $new_instance['tag_tax'];
    295     global $wp_rewrite;
    296     //Call flush_rules() as a method of the $wp_rewrite object
    297     $wp_rewrite->flush_rules();
     293    flush_rewrite_rules();
    298294    return $instance;
    299295  }
  • cat-tag-filter-widget/trunk/readme.txt

    r619017 r624028  
    55Requires at least: 2.8
    66Tested up to: 3.4.2
    7 Stable tag: 0.8.5
     7Stable tag: 0.9
    88
    99This plugin adds a widget to your WordPress site that gives your visitors an ability to filter all your posts by a category or/and tag.
     
    2121
    22221. Go to your Wordpress admin dashboard -> Plugins -> Add new, then search for **Cat + Tag Fliter** and agree to install it.
     232. Go to youк widget options and change the widgets settings.
     243. Sometimes it is needed to manually flush the rewrite rules. Go to your Permalinks Options and change it to something else, save, and then change it back to normal.
    2325
    2426If it didn't work, try this:
     
    27292. Activate the plugin through the 'Plugins' menu in WordPress
    28303. Go to your widgets settings and add Cat + Tag Filter widget to your sidebar.
     314. Sometimes it is needed to manually flush the rewrite rules. Go to your Permalinks Options and change it to something else, save, and then change it back to normal.
    2932
    3033If your theme doesn't support widgets, you can use this code:
     
    7073== Frequently Asked Questions ==
    7174
    72 None.
     75If the plugin seems to be working not as intended, try to manually flush the rewrite rules. Go to your Permalinks Options and change it to something else, save, and then change it back to normal.
    7376
    7477== Changelog ==
     78
     79= 0.9 =
     80* Added permalinks support. If it doesn't work - flush rewrite rules!
    7581
    7682= 0.8.4 =
Note: See TracChangeset for help on using the changeset viewer.