sCategory Permalink

· Русский (33,676 views)

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

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

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

  3. 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.

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

    Choose a category for permalink generation

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

  5. Have fun!

Upgrade

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

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

  3. 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:

version0.6.2DownloadsCategory Permalink

Also you can download older versions from plugin home page on WordPress.org (but do you really need this old stuff?).

Frequently Asked Questions

Q. Every page on my site responds with error 404
A. Go to Options/Permalinks page in Site Admin and click Save Changes to re-generate permalinks.

Q. First category is used for permalinks instead of selected
A. Check the permalinks structure you used (Options/Permalinks). You should use %scategory% instead of %category%.

Q. I love this plugin. How to do a favor to the author?
A. Just vote for this plugin on WordPress.org. And thank you!

Support

If you have any suggestions, found a bug, or just wanted to say “thank you”,– feel free to contact me. Promise, I will answer to every message.

If you want to contribute your code, see the Development section below.

Development

Sources of this plugin are available both in SVN and Git:

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: kpumuk@kpumuk.info. 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.
  • 0.6.0 (July 30, 2009)
    • Client side script completely rewritten. New visual look and better usability (thanks to Nikolay Kolev).
  • 0.5.0 (July 28, 2009)
    • Fixed problem with Subscribe2 plugin (thanks to Paul Wagorn).
    • Performance improvement (update meta tags only once per save).
  • 0.4.0 (July 21, 2009)
    • Fixed not-found bug when /%year%/%scategory%/%posttitle% permalink used.
    • Fixed not-found bug when paged comments enabled (/comment-page-N).
    • JavaScript rewritten using jQuery library.
  • 0.3.0 (April 4, 2008)
    • Fixed bug when pages was not found in Wordpress 2.5.
  • 0.2.2 (May 20, 2007)
    • Sometimes radio buttons was not displayed (thanks to Vince Caughley and Sam Keen).
  • 0.2.1 (Apr 1, 2007)
    • Removed dependency on deprecated Wordpress 1.5 function wp_get_post_cats.
  • 0.2.0 (Mar 30, 2007)
  • 0.1.0 (Nov 18, 2006)
    • Initial plugin implementation.

Other plugins

Full list of plugins I have implemented is available here.

113 Responses to this entry

Subscribe to comments with RSS or TrackBack to 'sCategory Permalink'.

Francesco @
said on 2007-04-15 at 2.15 am · Permalink · Reply

I can’t see the radio control with wordpress 2.1.3. There are some problems?

said on 2007-04-16 at 1.45 pm · Permalink · Reply

Are you sure you have enabled plugin? Another possible errors: you should copy plugin files into the wp-content/plugins/scategory_permalink folder; you should have JavaScript enabled in your browser.

said on 2007-04-16 at 6.54 pm · Permalink · Reply

Hm.. Francesco, you are right. I have same problem.
You must press button ‘Save and Continue Editing’ or ‘Save’. You will see radio control after this step.

kpumuk, if user does not save a post, there is no way to select category(user just does not see radio control :( )

said on 2007-04-16 at 7.05 pm · Permalink · Reply

Roman, you should update plugin to the latest version. See changelog for details, this bug has been fixed in 0.2.0 :-)

Vince @
said on 2007-05-08 at 8.58 am · Permalink · Reply

This looks like a great plugin – exactly what I wanted. However, like Francesco, after activating I too cannot see the radio control with Wordpress 2.1.

Source code for the post page has included the scategory javascript, but still no controls.

Is there anything I can check to find out why the problem?

said on 2007-05-08 at 1.53 pm · Permalink · Reply

Okay, you could help me (and other plugin users) if you would post some additional information: your browser (and maybe plugins, which you are using in it, especially if they are modifying html somehow,- just like greasemonkey for Firefox does), wordpress version (2.1.3 or less?), wordpress plugins (this is most important information).

You can send me this information by email (kpumuk@kpumuk.info) or post in comments. I know, it’s not easy to collect all this information… You could make several screenshots of you wordpress plugins page at least. It would be perfect.

Of course, I’m trying to locate the problem myself, but it’s not easy to reproduce.

Thanks for help!

said on 2007-05-20 at 12.44 am · Permalink · Reply

I’m having the same issue

  • WP 2.1.3
  • sCat 0.2.1
  • Firefox 2.0.0.3 (no extra extentions)
  • WP plugins
  • iG:Syntax Hiliter (3.5)
  • sCategory Permalink (0.2.1)

let me know if you need any other info

Sam Keen

said on 2007-07-18 at 7.46 am · Permalink · Reply

Hi, thanks for the update.

I have an issue with displaying subcatgories in the URL.

This are fine:

1
2
/MainCategory/SubCategory/PostTitle/
/MainCategory/

But not this:

1
/MainCategory/SubCategory/

I get a 404 error.

Sample:

1
http://jesseliwag.com/old-blog/tiaong-archive/waiting-for-my-work-to-residence-visa/157/

This is my permalinks structure:

1
/%category%/%postname%/%post_id%/
Robert @
said on 2007-07-22 at 3.39 am · Permalink · Reply

A really great and important plugin. i have a question, though. it seems to me that your plugin also creates new category url’s.

If domain.com/categoryname/postname than domain.com/categoryname is created for the category page.

These url’s do not replace the normal wordpress ones (domain.com/category/categoryname). That’s a shame, because category-label links under posts link to the old default url’s, while the new ones are much more logic.

I tried to fool wordpress by defining category permalink as /somestring/categoryname and post-permalink /somestring/categoryname/postname. This makes post-url return 404 though :-(.

any ideas?

Robert @
said on 2007-07-22 at 5.53 am · Permalink · Reply

oops. typo in admin-header. js link points to scategory_permalink, while plugin is in scategory-permalink. renaming directory solves problem

said on 2007-08-09 at 1.34 pm · Permalink · Reply

Dmytro I figured out why people are having a hard time getting the radio buttons to show on the post page. It’s quite simple:

- On the scategory_permalink.php page, there is this line of code:

1
var $pluginLocation = '/wp-content/plugins/scategory_permalink';

If the users are anything like me, they simple unzipped the folder as “scategory-permalink.0.2.2″ so that directory that is calling on the folder isn’t correct. If you simply change that line to:

1
var $pluginLocation = '/wp-content/plugins/scategory-permalink.0.2.2';

You got the radio buttons to show! I’m sure there’s a better way you can do this… a way where you don’t even have to change that $pluginLocation… just have it so it knows no matter where it is located (since the user, like many of us, will have made the mistake in unzipping it in a different directory than the one you put hard coded in the file)

Hope that helps

Fanatyk
said on 2007-08-10 at 12.22 pm · Permalink · Reply

Hello,

I have a question about the plugin:

  1. What about posts published before plugin installation?

  2. Does it work with PW 2.2.2?

said on 2007-08-17 at 8.56 pm · Permalink · Reply

Hello Dmytro,

I have used your plugin as a starting point for creating a similar one NG Primary Category WordPress plugin which inserts the radio boxes without using any Javascript (through PHP output buffering & regular expressions).

You might want to check the source code. Your comments / suggestions will be very welcomed since your PHP experience seems very advanced.
If it wasn’t for the %scategory% your plugin would have saved me from all the trouble!

Congratulations for having an excellent site, combining very good layout / presentation with very interesting subjects.

HarryK @
said on 2007-08-24 at 9.18 am · Permalink · Reply

I’m using WP 2.2.x, activated plugin, followed the directions and I (like the guy with the previous version you fixed) am not seeing the radio buttons come up either.

I am also getting on the write new post page an error message line 481 on post-new.php. “object expected”. When I “turn back the hands of time” and deactivate your plugin and take the scatagory out of permalinks, the write page shows no errors, so it seems this is the problem.

Hope you come up with a fix. Thanks!

said on 2007-11-05 at 8.20 pm · Permalink · Reply

I have same problem like HarryK’s problem.

thanks.

sonika @
said on 2007-12-03 at 9.24 am · Permalink · Reply

А с wp 2.3.1 совместимость планируется?

said on 2008-03-03 at 7.58 pm · Permalink · Reply

It is not working on WP 2.3.3

The radio buttons does not appear.

ilo @
said on 2008-03-18 at 1.23 pm · Permalink · Reply

same here, now working with 2.3.3 :( !

does anyone know of any alternative plugins? or a way to do it manually?

said on 2008-04-07 at 3.48 pm · Permalink · Reply

dear dmytro, ive installed everything according to the instructions, but the chosen (radiobutton) category does not show as the first one in my theme…

an example: at http://handshake.se , ive chosen “tech” (ca 19) as the main category for the latest article on intels atom. neverhteless, the article shows up as “hardware” (cat 34). i ve got no explanation for this.

ive tried to uncheck the checkbox of the radiobuttoned tech category, but that doesnt help either. then “tech” disappears entirely from the theme on pages such as http://handshake.se/tech/intels-nya-karnkraftverk/

said on 2008-04-07 at 3.51 pm · Permalink · Reply

forgot to mention that cat 34 hardware is nested in cat 19 tech. this means that “hardware” is a part of “tech”. is this the culprit?

Nick
said on 2008-08-18 at 6.07 am · Permalink · Reply

Hi

Mmm, this may be a silly question, but next to each category there is a checkbox and a radio but – what is the purpose of having both of these? If i’m going to assign a post to a specific category should I select both the radio button and checkbox across from that category or only the radio button?

I’m just mystified about the checkbox when there is only reference to the radio button above.

Many thanks for a great plug
Nick

smooth
said on 2008-08-23 at 8.35 pm · Permalink · Reply

Hi,
sadly the plugin is not working correctly with WP 2.6.1. The correct URL, as it is supposed by me, will be produced but it leads to 404. Any Chance for an update?

@Nick
The checkboxes are used originaly by WordPress to assign one (or more!) categories to your post. The Radiobutton is used by this plugin to asign only one category to your post that should be displayed in the URL if you are using the permalink feature by WordPress. If you always assign only one category to your posts, or you are not using permalinks, you don’t need this plugin.

Nick
said on 2008-08-24 at 12.38 am · Permalink · Reply

Hi Smooth

thanks a lot that explanation has really helped.

Nick

Serg
said on 2008-10-08 at 10.50 pm · Permalink · Reply

Супер, спасибо большущее за плагин. Пытался найти решение, но помог только ваш плагин. В такие моменты хочется найти кнопку Donate :)

dea @
said on 2008-10-16 at 2.55 pm · Permalink · Reply

any suggestion how to automaticly using main category

ex.

1
domain.com/level1/level2/level3/postname/

to

1
domain.com/level1/postname/

thanks for your help

said on 2008-11-06 at 5.38 pm · Permalink · Reply

This is the exact plugin I was looking for. Thanks so much for the time you’ve put into it.

Sadly, it isn’t working for me.

I see the radio buttons. But no matter which category I select (main category or sub-category) the permalink doesn’t change.

I’m using Wordpress 2.6.1 if that helps.

said on 2008-12-15 at 3.09 am · Permalink · Reply

в 2.7 всё сломалось(

said on 2008-12-15 at 3.01 pm · Permalink · Reply

Достаточно просто пересохранить пермалинки на странице администрирования – и все работает.

said on 2008-12-16 at 2.20 am · Permalink · Reply

Как я рад, что всё ещё живо)
только я не могу найти где это можно сделать.

Jon
said on 2009-01-03 at 5.22 pm · Permalink · Reply

This is a great plugin, but is there a way to do it without using %scategory% and just the standard %category%? I’d like the actual permalink to be manipulated upon saving the post.

I’m building a site where posts are categorized under several different sub-categories, but I want the permalinks to be created from only one set. But I would like the posts to appear in the pages for the other categories as well.

I’d like for permalinks to be /issues/july-2009/post-name.html and I would like to be able to go to /topics/development and see the post listed there. With %scategory% I currently get a 404 for /topics/development. How can I manipulate the actual permalink creation not using %scateogry%?

Let me know if you need more clarification and thanks for all the great work you have out into this plugin!

said on 2009-01-04 at 4.00 pm · Permalink · Reply

Hey Jon,

Thank you for your great proposal. I definitely have to implement this feature in nearest release (I’m working on it now). Stay tuned!

Евгений @
said on 2009-01-25 at 7.58 pm · Permalink · Reply

Спасибо дмитрий за отличный плагин, но вот в 2.7 перестали нормально коментарии работать. При постинге пишет что страница не найдена.

said on 2009-01-26 at 2.15 am · Permalink · Reply

Да, Евгений, спасибо. Тоже заметил, ищу решение, недеюсь, скоро получится исправить. Эта ошибка проявляется, если включить разбивку комментариев на страницы, потому если Вам не критично, можете отключить эту возможность дабы избавиться от ошибки. А там я и плагин поправлю :-)

Евгений @
said on 2009-01-26 at 7.34 am · Permalink · Reply

Я просто файл wp-comments-post на старый поменял, там редирект иначе сделан. Спасибо.

Hikari @
said on 2009-02-06 at 11.37 pm · Permalink · Reply

Great plugin, I really loved it!!

And it works fine with WP 2.7!

Hikari @
said on 2009-02-09 at 9.49 am · Permalink · Reply

Well, after some tests I found out the 404 bug too…

My permalink was the tradicional /%year%/%monthnum%/%day%/%postname%/ and I changed it to /%post_id%/%scategory%/%postname%/

During the past week I’ve been testing a lot of configs, tried to mix scategory with permalink-redirect and top-level-cats, it made a too much trastic change in WP core and something was always not working.

After learning more about htaccess and trying to redirect error permalinks to working ones, I abdicated of top-level-cats and made most of permalink-redirect directly in htaccess, leaving only scategory.

But something is still not working. As soon as I change parmalink, pages URLs break. They all start returning 404 and nothing can stop it.

Hikari @
said on 2009-02-09 at 9.51 am · Permalink · Reply

The 2 things that I can’t let go is the new permalink structure and the ability to choose which category will be used for each post.

But I also can’t break date archives and much less pages, so I’m in a dead end now.

If I find a solution I’ll come back share it, but any help is also very apreciated :(

said on 2009-03-07 at 1.12 pm · Permalink · Reply

Увы, получаю ошибку 404. WordPress 2.6.1

Serenine @
said on 2009-03-12 at 6.35 pm · Permalink · Reply

Hello Dmytro,

Thank you for providing a great plugin.
I am having the same problem as Jon with subcategories. At this point I am getting a 404 when someone submits a comment. No 404 elsewere. I hope to hear about solution soon. Thank you.

Permalink: /%scategory%/%postname%/ before /%category%/%postname%/
WP 2.7.1 + sCategory 0.3.0

Serenine @
said on 2009-03-12 at 8.34 pm · Permalink · Reply

Hi,
After searching. I disabled comments paging in Settings > Discussion and it seems to be working.

I don’t think I have the same issue as Jon like I initially posted.

Thanks for a great plugin. Will be sure to make a donation soon.

said on 2009-04-04 at 10.14 am · Permalink · Reply

I second Jon’s request above but for a slightly different reason. My permalink structure uses .html and sCategory Permalink strips this resulting in problems with other plug ins.

paul @
said on 2009-05-07 at 9.07 pm · Permalink · Reply

Help!!!

I installed this plugin, it seemed to work correctly, but now all my Pgaes (pages, not posts) all result in 404’s.

how do I finx this? even after disabling the plugin, is still doesn’t work !!

paul @
said on 2009-05-07 at 9.19 pm · Permalink · Reply

actually, sorry, the problem goes away when I completely deactivate the plugin… but of course none of the inbound links to my blog link to the right pages because all the urls changed back to default categories.

help, is there a fix for this?

said on 2009-05-07 at 9.22 pm · Permalink · Reply

paul, just go to Options/Permalinks and check the permalink structure (should be %scategory%). Then click save to regenerate permalinks.

paul @
said on 2009-05-07 at 9.29 pm · Permalink · Reply

Yes, that’s what I did when I installed it, and it worked fine, however the Pages (again, pages, no posts) stopped working – they all resulted in 404’s.

the temporary fix for me was to go back to the %category% method… this actually didn’t work (even after re-saving), and I had to actually deactivate the plugin for it to start working.

NOW, the big problem is that my permalinks have reverted back to the originales (ie with categories other than the ones I selected with your pluin), and so links coming into my site all point at pages that do not exist.

The main problem is that your plugin causes my pages to 404. The secondary problem is that my inbound links are messed up now because i had to deactivate the plugin to make my site work.

said on 2009-05-07 at 9.31 pm · Permalink · Reply

What version of WordPress and scategory_permalink do you use? In this blog I’m using latest stable WordPress and plugin, and see no problems with pages.

paul @
said on 2009-05-07 at 9.36 pm · Permalink · Reply

HI,

I’m using WP 2.7.1

permalink is /%year%/%scategory%/%postname%/

I’m wondering if it could possibly be a plugin conflict? I’m using:

All in One SEO Pack 1.4.91
Another Wordpress Classifieds Plugin 1.0.4.8
Audio player 2.0b6
Better Blogroll 2.9
Exclude Pages from Navigation 1.51
Exec-PHP 4.9
Google XML Sitemaps 3.1.2
Nofollow Links 1.0.3
Subscribe2 4.15
WP-EMail 2.40
WP-PostViews 1.40

thanks

said on 2009-05-07 at 9.58 pm · Permalink · Reply

Ok, I have dirty solution for you. Find the following link in scategory_permalink.php:

1
if (0 === strpos($structure, '%scategory%'))

and replace it with:

1
if (strpos($structure, '%scategory%') >= 0)
paul @
said on 2009-05-07 at 10.06 pm · Permalink · Reply

Works perfectly. Thank you so much.

I have never had anyone respond so quickly to problems as you have – even to the point of doing some custom programming for me.

Inspires myself to do better. thank you.

said on 2009-05-07 at 10.08 pm · Permalink · Reply

Thank you for your report. This change will be integrated into the upcoming release, so update would not break anything.

Hikari @
said on 2009-05-08 at 2.40 am · Permalink · Reply

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

Using my site http://Hikari.ws as example.

I have a lot of posts using the category http://hikari.ws/cats/entretenimento/vogonismo/, one of them is http://hikari.ws/entretenimento/vogonismo/291/o-pq-de-eu-naum-gostar-dos-vegetarianos/.

I’d like it to be http://hikari.ws/vogonismo/291/o-pq-de-eu-naum-gostar-dos-vegetarianos/. This URL works, but WordPress keeps generating the /entretenimento/vogonismo/ URL, and thanks to Permalink Redirect it goes back to /entretenimento/vogonismo/ as soon as /vogonismo/ URL is used.

But on the other hand, posts based on http://hikari.ws/cats/tutorial/en/ category must keep the /tutorial/en/ permalink, to indicate their language.

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.

Hikari @
said on 2009-05-08 at 2.43 am · Permalink · Reply

Another question, which plugin do you use for code formatting on comments?

I use WP-Syntax and it doesn’t work on comments…

said on 2009-05-12 at 7.06 pm · Permalink · Reply

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?

Thanks, and great plugin!
RB

said on 2009-05-18 at 8.53 pm · Permalink · Reply

Hi,

I am using the following permalink structure

/%category%/%year%-%monthnum%-%day%-%postname%/

This plugin is not working for this permalink structure & I am using Wordpress 2.7.1

Please suggest me the fix.

Thanks.

said on 2009-05-19 at 1.09 pm · Permalink · Reply

Freshers Jobs– If you’ll read the top of THIS PAGE… you’ll see it says you need to use %scategory%.

Please do a double check before posting in the future.

said on 2009-05-19 at 6.22 pm · Permalink · Reply

I just found out the permalink is stored in the meta field: _category_permalink which is relatively simplistic to draw out. Hooray!

paul @
said on 2009-05-22 at 8.54 am · Permalink · Reply

looks like the plugin is breaking the pagination of the blog ( ie domain.com/page/2/ doesn’t work anymore). ie “more entries” link at the bottom

is there a fix for this?
thanks!

said on 2009-06-08 at 9.04 pm · Permalink · Reply

Weird, having trouble getting radio button box to appear. I’m using: /%category%/%postname%, changed the %category to %scategory, saved that.

I now get, in my post pages, the permalink name being:
http://dgeneratefilms.com//postname, and the only option being to edit the postname. Plugin is installed. On WP 2.7.1.

Paul @
said on 2009-06-09 at 8.57 pm · Permalink · Reply

ARRGH!

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.

is there a fix for this bug? it’s really causing some major problems.

thanks!

Paul @
said on 2009-06-12 at 7.49 am · Permalink · Reply

hi, my comment is still under moderation….

I’m having major problems with the plugin making everything in the uncategorized category as soon as i publish it…!

thanks

Paul @
said on 2009-06-15 at 8.38 am · Permalink · Reply

I can’t post articles to my blog until this is sorted out….

and I cannot disable the plugin, as all my categories will get messed up.

help !!!

said on 2009-06-20 at 5.23 am · Permalink · Reply

Dmytro – Great plugin!

@Randall or Dmytro – I’m also trying to find a way to access the scategory variable in a theme/template. Is there a straight-forward PHP call to output it?

said on 2009-06-20 at 5.34 am · Permalink · Reply

Alright, am going to be that guy that answers his own question. Sorry, should have just investigated it further before posting.

Here’s how to pull the selected category (scategory) ID and print it in a theme/template file:

This will get the information in an array:

1
$scategory = get_post_custom_values("_category_permalink");

And this will print it:

1
print $scategory[0];

Thanks again for this awesome plugin Dmytro!

Vanya @
said on 2009-07-04 at 12.34 pm · Permalink · Reply

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 :(((

Randall
said on 2009-07-13 at 4.06 pm · Permalink · Reply

@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.

paul @
said on 2009-07-14 at 8.07 am · Permalink · Reply

I don’t use subcategories at all. The plugin works, except the emails that get sent out are under uncategorized.

also, it USED to work perfectly until the update. I wouldn’t have used it if it didn’t work. Now it doesn’t function and it’s impossible to remove the plugin without wrecking my blog urls.

I’m not using /%category%/%postname%/

I’m using /%category%/%year%/%postname%/

paul @
said on 2009-07-18 at 4.36 am · Permalink · Reply

Is there a fix for this plugin and the “uncategorized” problem yet?
My 2000+ subscribers are getting the wrong URLs still.

thanks

Randall
said on 2009-07-18 at 3.09 pm · Permalink · Reply

Paul,

If you’ll read at the top of this page, it’s actually your fault why it’s not working properly.

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

It should be /%scategory%/ not /%category%/ like you listed in a previous comment.

paul @
said on 2009-07-18 at 3.32 pm · Permalink · Reply

No, that was a typo in response to the fact that you told me I was using:
/%category%/%postname%/

I’m actually using:
/%year%/%scategory%/%postname%/

Randall
said on 2009-07-24 at 1.17 am · Permalink · Reply

Problem… I think thanks to the new comments structure, scategory permalink breaks my site and I get 404 errors when someone posts a comment.

said on 2009-07-24 at 2.05 am · Permalink · Reply

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.

Thank you!

said on 2009-07-24 at 2.32 am · Permalink · Reply

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?

Thanks!

Randall
said on 2009-07-24 at 2.36 am · Permalink · Reply

D’oh. Thanks!

Silly lack of checking upgrades.

paul @
said on 2009-07-28 at 4.44 pm · Permalink · Reply

I will gladly pay for someone to fix the problem with this plugin. my blog has 2000 subscribers who do not get the right url in their notifications anymore, and it is a major problem.

I cannot seem to get a response from the author, other than a kurt “it’s your fault”, with incorrect assumptions.

Anyone out there who can help?

Toly @
said on 2009-07-30 at 4.08 am · Permalink · Reply

I just upgraded to 0.6.0 and it seems there is a conflict with WP 2.8.2. When I go to add/edit post, I get a blank page.

I’m using the WP MU version but I haven’t had any issues with previous versions of this plugin.

Toly @
said on 2009-07-30 at 4.53 pm · Permalink · Reply

Thanks for the fix.

Ruzanna
said on 2009-08-06 at 1.36 pm · Permalink · Reply

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.

Ruzanna
said on 2009-08-06 at 1.50 pm · Permalink · Reply

and here is the list of all plugins i use:

Add Meta Tags 1.6
Add to Any: Share/Bookmark/Email Button .9.9.3.4
Akismet 2.2.6
Bad Behavior 2.0.28
Dagon Design Form Mailer 5.6
Digital Fingerprint Beta 0.2
External Links 3.0.4
Google XML Sitemaps 3.1.4
Role Manager 2.2.2
sCategory Permalink 0.3.0
SEO Friendly Images 2.4.2
SEO Slugs 1.0
Thumbnail For Excerpts 1.3
WordPress Database Backup 2.2.2
Yet Another Related Posts Plugin 3.0.8

said on 2009-08-24 at 4.57 pm · Permalink · Reply

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.

Angie @
said on 2009-09-03 at 2.20 pm · Permalink · Reply

Hi Dmytro!
GREAT GREAT GREAT plugin!

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?

Thank you so much, and sorry for my bad english

said on 2009-09-05 at 11.10 am · Permalink · Reply

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

said on 2009-09-16 at 4.21 pm · Permalink · Reply

This plugin is not working for me for quite some time (sorry, but I didn’t kept track of both the plugin and Wordpress version).

On the editor window I can see the “Primary” link and (still in the editor window) it seems to work, but if I use:

1
/%scategory%/%postname%/

and then navigate my site, I get the 404 error on every post. Of course I tried to regenerate the permalinks.

Any idea.

said on 2009-09-23 at 3.46 pm · Permalink · Reply

This is a true gem of a plugin, just wanted to let you know that.

And also I noticed (on WP 2.9-rare) that the plugin doesn’t work for previewing posts, the category doesn’t use the scategory.

I love this plugin.

said on 2009-09-23 at 4.02 pm · Permalink · Reply

MANY MANY people are getting the below error

1
2
3
"Fatal error: Call to undefined function add_action()"
....
"plugins/scategory-permalink/scategory_permalink.php on line 33"

Same with me. How to solve this ?

regards,
ASHISH THAKKAR

said on 2009-09-23 at 4.55 pm · Permalink · Reply

It means that your version of wordpress is old and exploitable. you need to upgrade.

said on 2009-10-15 at 10.41 pm · Permalink · Reply

After installing all my posts show 404. I regenerated the permalink structure several times. I want my permalinks to look like this:

1
/%scategory%/%postname%-event.htm

I’ve read all the above comments and I saw that there might be a problem with having “.htm” at the end of my permalink structure.

I also have the WP No Category Base plugin installed.

said on 2009-10-16 at 12.09 pm · Permalink · Reply

Thank you for your bug report. I will check it and fix soon (there is one more bug has been fixed yesterday with WordPress 2.7, so the new version will go to public in nearest future).

kadavy @
said on 2009-10-16 at 1.32 am · Permalink · Reply

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?

said on 2009-10-16 at 12.12 pm · Permalink · Reply

I will check how I can penetrate to the All in One SEO Pack logic to get sCategory Permalinks working with it. Thank you for you report.

said on 2009-10-18 at 4.27 pm · Permalink · Reply

Hi Dmytro,

That would be a very very nice addition to this plugin. I discovered just today that my URLs wearen’t matching with my All in One SEO Pack titles and I tried the same as kadavy without success.

Thanks for looking in to it!!!

Hikari @
said on 2009-11-16 at 10.21 pm · Permalink · Reply

Hey Dmytro, really great plugin, I’ve been using it for months and WP should have this feature by default!

Thanks a lot for maintaining it and BIG thanks for supporting all questions and bug reports ^^

Post a comment

You can use simple HTML-formatting tags (like <a>, <strong>, <em>, <ul>, <blockquote>, and other). To format your code sample use [cc lang="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.

Submit Comment