Plugin allows to select category which will be used to generate permalink on post edit page. Use custom permalink option %scategory% on Options/Permalinks options page.

Installation

Download and unpack plugin files to the wp-content/plugins/scategory-permalink directory.

Enable sCategory Permalink plugin on your Plugins page in Site Admin.

Open the Options/Permalinks page in Site Admin and use %scategory% option in Custom Structure text field (you can look here for other options). In this blog I’m using /%scategory%/%postname%/ structure.

When you move your mouse over category in Categories box the Primary link will appear on the right.

Click it to set the category which will be used to generate permalinks. It will be highlighted with bold.

Have fun!

Upgrade

Download and unpack plugin files to the wp-content/plugins/scategory-permalink directory.

Open the Options/Permalinks page in Site Admin and and click Save Changes to re-generate permalinks.

When you move your mouse over category in Categories box the Primary link will appear on the right. Click it to set the category which will be used to generate permalinks. It will be highlighted with bold.

Demonstration

I have recorded a small screencast on how sCategory Permalinks works starting from version 0.6.0:

Requirements

Plugin works pretty well with the WordPress 2.7.0 — 2.8.2. Hey users of WordPress 2.7.0, could you explain why do you use so old buggy crap? Use new one instead, at least it looks more beautiful!

Download

Latest version of sCategory Permalink is 0.6.2, and it could be downloaded here:

Development

Feel free to check them out, make your changes and send me patches. Promise, I will apply every patch (of course, if they add a value to the product). Email for patches, suggestions, or bug reports: [email protected]. Also you have much more ways to contact me.

Changelog

0.6.2 (July 30, 2009)

Nothing really changed. Just to force WordPress to update version.

0.6.1 (July 30, 2009)

Fixed blank page when post edit page requested.

Fixed “Primary” link appear on all sub-categories, when category selected.

125 Responses to this entry

Really awesome plugin, and it works as prescribed, but I had another use in mind:

I wanted to use this in conjunction with the “All in One SEO” plug-in to append the primary category to the end of the post title, but it looks like the %scategory% variable doesn’t work in this context — any ideas?

Hi,
I found that by using your plugin, it would change image attachment links and cause a 404. For example, i have an image on my post which links to the attachment page. When you click on it, it gives you a 404. It seems that with this plugin enabled, it strips “attachment/” from the link URL (or doesn’t add it back on). Are you aware of this and do you have a fix?
I have had to completely remove this plugin.
thanks

It works nicely in WordPress 3.1.2. I even don’t loose old permalink that was based on ‘Day and name’ permalink structure.

But I’m still not sure about the function of Primary link on Categories box. I tried to click one category as primary when I have a post with multiple categories, but the permalink stayed the same. Nothing changed. But it always generates permalink from main category to sub-category, so I guess it is working just fine for me.

I’ve used this plugin on a site for a few years, but today I updated WP to 3.3 and the plugin causes 404 errors on all posts. I noticed that the permalink code that WP adds to .htaccess is different now, so I think the plugin can no longer work with WP.

Post a comment

Name (required)

Email (will not be published) (required)

Website

You can use simple HTML-formatting tags (like <a>, <strong>, <em>, <ul>, <blockquote>, and other). To format your code sample use [cclang="php"]$a = "hello";[/cc] (allowed languages are ruby, php, yaml, html, csharp, javascript). Also you can use [cc][/cc] block and its syntax would not be highlighted.