WordPress.org

Ready to get started?Download WordPress

Forums

WP No Category Base
patch to work with custom permalinks plugin (1 post)

  1. robfelty
    Member
    Posted 3 years ago #

    To get the plugin working with the custom permalinks plugin, replace the no_category_base function with:

    function no_category_base($catlink, $category_id) {
      $base = get_option('category_base');
      if ($base=='')
        $base='category'; // wp default if none specified
      $catlink=str_replace($base, '', $catlink);
      return $catlink;
    }

    http://wordpress.org/extend/plugins/wp-no-category-base/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic