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.

I had same problem paul had when I installed scategory, I’m sad I didn’t have the same support that time :P

I wanted to use /%post_id%/%scategory%/%postname%/ as permalink, but it was breaking pages. Only solution I found was to use /%scategory%/%post_id%/%postname%/ instead.

I will give it a try with your fix, but now I started to feel that having post ID separating category to postname is the best structure after all :P

But I’d like to make a request. When we have a category nested inside another, both of them are used on permalink. I’d like to have only the nested one showing on some cases, but still both of them on other cases… Do you think this can be implemented? :p

Since your plugin is able to tweak WP permalink core, I belive this can also be done, but I’m not good enough on PHP to implement it. In User Interface, it would be a matter of choosing to use whole category path or only the nested one.

I can beta test it with you if you want, I have 2 blogs (1 of them using scategory for a few months, the other will have it implemented next week!) and I can install as many development blogs as I want to make tests.

Is there a way to use the scategory to display in a template? I’d love to designate a “primary” category which I display in my template. Maybe you could add a function in future versions that allows this? Or is there one already that I missed?

Every time I publish a story, no matter what category I choose, the url permalink changes to uncategorized as soon as I publish it.

This is obviously a major problem even if I change it after the fact, as all my email notifications go out with the uncategorized category.

I have a feeling that this happens when the category that was first chosen for the permalink is changed (& saved of course) before it’s published. the plugin gets confused & it reverts back to uncategorized.

now my htaccess is full of 301 redirects that I have to set up because I have to change the permalink back to what it’s supposed to be right after it’s published.

It simply does’t change the category – everything is on place, the ratio etc., but if I want to choose a category for my permalink, I just can’t! I click save and than edit and than save again………….. nothing!
I’ve got this post: http://mysite.co.uk/somecategory1/post-bla-bla/, published in 2 different categories: somecategory1 and somecategory2. It is actually not possible to change the automatically chosen category1. I don’t know why WP prefers the category1 :(((

@ryan or anyone else with the custom field question… since its a custom field there are a bunch of ways to get at it. I use a plugin called “flutter” which adds tons of other CMS-like functions to get at custom data. You could also use c2c_custom_get() which I think is pretty rad too.

Could you post a link to your site so I will be able to track where is the problem? I want to know the permalink structure and check if paged comments are enabled. The problem should not be so hard to fix.

I see you’re using scategory_permalink version 0.3.0, but this error has been fixed in 0.4.0 days ago. Could you upgrade it and click “save” on Permalinks options page to re-generate permalinks structure?

i’m using wordpress 2.7.1. and scategory 0.6.2. everything was working perfectly with scategory 0.3.0., but once i updated to 0.6.2., the plugin stopped working, there is no ‘primary’ button appearing when i move the mouse over the category names. please advise.

Just a heads up… the “Primary” link doesn’t appear in Chromium for Mac… which is admittedly a beta, but yeah. Would love an option to re-enable radio buttons, but understand if that’s not exactly a high priority.

but it doesn’t work in my blog :(
I use WP 2.7.1 and the last version of your plugin
I activated it and I changed the permalink with %scategory% then save but…nothing happens! I can’t see the radio button, the “primary” link, I don’t even have the 404 error when I access to my posts that still have the old permalinks!
How can I fix it?

Same problem here with WP 2.7
I can’t see any ajay primary link appearing in the category widget. Also when I change category, it puts all the postings to my primary default category
Any idea how to fix?
Thanks

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.