Change /category/ in URL to something else
-
I would like to use your plugin to display a navigable list of categories (works great) with one little adjustment. I need the URL to point to /article/ instead of /category/.
I’m using IssueM to create books which need to have hierarchical navigation. I found the one line in their plugin to enable that. So I have a defined hierarchy.
But their list widget only displays a flat list of articles (posts), not the defined hierarchy. Unfortunately for me, their “article category” doesn’t show up at all in the WP admin list. I need to filter the articles by “book” (category) for 20-30+ articles in one book with eventually several dozen books. So not being able to filter isn’t an option. The WP category filters just fine.
Your widget displays a hierarchy of categories — perfect solution, but it points to /category/ in the URL.
You have an add function that is supposed to replace the taxonomy — tried putting that in my child functions file — didn’t work. Also tried the add function to support another type (not ‘page’) just to see. That didn’t work either. And, if it had, it would be a problem since I have pages that I want to use it with (and working just fine). A global change of “page” to “article” would not be the solution for me.
I looked at the “total rewrite” function. That appeared to work — replaced everything with “text here.” Unfortunately, I couldn’t figure out what to include.
Help?
- The topic ‘Change /category/ in URL to something else’ is closed to new replies.