WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Single Category Permalink

Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest level category.

Filters

The plugin exposes one filter for hooking. Typically, customizations utilizing this hook would be put into your active theme's functions.php file, or used by another plugin.

c2c_single_category_redirect_status (filter)

The 'c2c_single_category_redirect_status' hook allows you to specify an HTTP status code used for the redirect. By default this is 302.

Arguments:

  • $status (integer) : The default HTTP status code

Example:

// Change single category redirect to 301
function scp_change_redirect_status( $code ) {
    return 301;
}
add_filter( 'c2c_single_category_redirect_status', 'scp_change_redirect_status' );

Requires: 1.5 or higher
Compatible up to: 3.8.3
Last Updated: 2014-1-25
Downloads: 6,350

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
0,1,0
0,1,0