Project

General

Profile

Support #3929

Possible to change category slugs?

Added by David dos Santos over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2015-03-19
Due date:
% Done:

0%

Estimated time:

Description

Hi,

We would like to edit slugs for our categories in acert.hunter.cuny.edu

How can we do this? I do not see an option to do this when I edit a category under Posts > Categories.

Thank you,
David

History

#1 Updated by Matt Gold over 4 years ago

  • Tracker changed from Feature to Support
  • Category name set to WordPress (misc)
  • Status changed from New to Assigned
  • Assignee set to scott voth
  • Target version set to Not tracked

#2 Updated by scott voth over 4 years ago

Hi David - I don't think WP has any built in functionality to change a category slug. You can, of course always create a new category, and re-categorize your posts.

There are a couple plugins you might consider - some get rid of the category base in the url (https://wordpress.org/plugins/remove-category-url/ or https://wordpress.org/plugins/remove-taxonomy-base-slug/, another seems to allow you to totally change the slug (https://wordpress.org/plugins/enhanced-category-pages/screenshots/).

Can you take a look to see if any of these suits your needs. Thanks.

#3 Updated by Boone Gorges over 4 years ago

If I understand correctly, you should be able to go to Dashboard > Posts > Categories, then click on the category name in question, to pull up a screen where you can edit the category name, slug, or description.

#4 Updated by Boone Gorges over 4 years ago

  • Assignee changed from scott voth to Boone Gorges
  • Target version changed from Not tracked to 1.7.17

Scratch that - you can't edit your category slugs that way because we've enabled a feature called "global tags". Let me look further into this - we don't actually use this feature on the Commons, so I can probably turn it off so that you can edit slugs on your local site.

#5 Updated by Gina Cherry over 4 years ago

Thanks Boone and Scott. We're planning to use categories quite extensively, so it will be important for us to be able to edit the slugs. If you can't turn off "global tags," then we would like to install a plug-in with this functionality.

#6 Updated by Gina Cherry over 4 years ago

Hi Boone,

Just wondering about a timeframe for this. I'm holding off on doing anything extensive with categories until this issue has been resolved…

Should we be looking for a plug-in?

#7 Updated by Boone Gorges over 4 years ago

Hi Gina - I'm going to try to fix this for the April 1 release. I don't think it will be possible to use a plugin to work around this (at least not one that I'd feel comfortable using) - it's going to run up against the same "global terms" problem as you're seeing now. Please stay tuned for updates.

#8 Updated by Boone Gorges over 4 years ago

  • Status changed from Assigned to Resolved

I've run through the codebase to make sure that global terms were not, in fact, being used anywhere. Looks like we're in the clear. I've disabled them in https://github.com/cuny-academic-commons/cac/commit/ce1c373b2c967e152adf7e3d631a373853c4a618. After tonight's release, you'll be able to edit term slugs.

Also available in: Atom PDF